title: Remove code from "functions.php" in child theme
body: <p>I am trying to remove some lines from function.php in Wordpress without making this permanent. My initial thought was to use a child theme. I understand that if you add "functions.php" as a child, it can be used to modify the parents function. Any recommendations? Thanks in advance for your support!!!</p>
  
  <p>This is the code I want to target:</p>
  
  <pre><code>function top_bar_front_end_menu(){
  $top_bar_status= esc_html ( get_option('wp_estate_enable_top_bar','') );
  if($top_bar_status=='yes'){
      $current_user = wp_get_current_user();
      $username=$current_user-&gt;user_login ;$pages = get_pages(array(
          'meta_key' =&gt; '_wp_page_template',
          'meta_value' =&gt; 'user-dashboard-add.php'
      ));
  
      if( $pages ){
          $add_link = get_permalink( $pages[0]-&gt;ID);
      }else{
          $add_link='';
      }
  
      $pages = get_pages(array(
          'meta_key' =&gt; '_wp_page_template',
          'meta_value' =&gt; 'user-dashboard-profile.php'
              ));
  
      if( $pages ){
          $dash_profile = get_permalink( $pages[0]-&gt;ID);
      }else{
          $dash_profile=home_url();
      }   
  
      $dash_link =   get_dashboard_link();
      print'&lt;div class="top-user-menu-wrapper"&gt;
          &lt;div class="top-user-menu"&gt;
              &lt;div class="wellcome-user"&gt;';
  
                  $show_user_not_logged_in='';
                  $show_user_logged_in='';
                  if ( is_user_logged_in() ) { 
                      $show_user_not_logged_in='geohide' ; 
                  }else{
                       $show_user_logged_in='geohide';
                  }
  
                   $paid_submission_status    = esc_html ( get_option('wp_estate_paid_submission','') ); 
  
                   print '
                      &lt;div id="user_logged_in" class="'.$show_user_logged_in.'"&gt;';    
                      if($dash_link!=''){
                          print ' &lt;a href="'.$dash_link.'"&gt;'.__('My Properties','wpestate').'&lt;/a&gt; | ';
                      }else{
                          print '&lt;a href="'.$dash_profile.'"&gt;' .__('My Profile','wpestate').'&lt;/a&gt; | ';
                      }
  
                      if($add_link!=''){
                          print '&lt;a href="'.$add_link.'"&gt;' .__('List a Property','wpestate').'&lt;/a&gt; | ';
                      } 
  
                      print'
                      &lt;a href="'.wp_logout_url().'"&gt;'.__('Log Out','wpestate').'&lt;/a&gt;
                      &lt;/div&gt;';  
  
  
  
                      $front_end_register =   esc_html( get_option('wp_estate_front_end_register','') );
                      $front_end_login    =   esc_html( get_option('wp_estate_front_end_login ','') );
                      print '
                      &lt;div id="user_not_logged_in" class="'.$show_user_not_logged_in.'"&gt;  
                      &lt;a href="'.$front_end_login.'"&gt;'.__('Login','wpestate').'&lt;/a&gt; |    
                      &lt;a href="'.$front_end_register.'"&gt;'.__('Register','wpestate').'&lt;/a&gt; 
                      &lt;/div&gt;';
  
  
                  print'
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;';
  
  } 
  </code></pre>
  
  <p>}</p>