How to Delete WordPress Search Bar?

by npaige
3 replies
  • WEB DESIGN
  • |
Hi friends,

I installed a custom search plugin (now in footer) and would like to get rid of the standard search bar that came on my WP theme.

Mountain River Stream l Fabulous Outdoor Gear Reviews & Tales Of Intimate Adventures [By & For Women w/ Dr. Nicki]

Please advise how to delete it or make it invisible.

Thanks much,
Dr. Nicki
#bar #delete #search #wordpress
  • Profile picture of the author David V
    There's no option to turn it off, so the best way to do it without deleting it is to comment it out.

    Go to "Appearence--> Editor"
    Select the "header.php" in the right column for the theme.
    Scroll down and find this block of code:
    Code:
    	    <div id="search">
    	    	<?php get_search_form(); ?>
    		</div> <!-- end #search -->
    Comment it out like so:
    Code:
    	   <!-- <div id="search">
    	    	<?php get_search_form(); ?>
    		</div> -->
    <!-- end #search -->
    Now it's gone but still in the header in case you change your mind at some point.
    {{ DiscussionBoard.errors[7786321].message }}
    • Profile picture of the author npaige
      Done. Beautiful!

      Thank you, David.
      You seem to be the main (or only?) person in this area of the forum.Great to see you again. Really appreciate your help.

      Originally Posted by David V View Post

      There's no option to turn it off, so the best way to do it without deleting it is to comment it out.

      Go to "Appearence--> Editor"
      Select the "header.php" in the right column for the theme.
      Scroll down and find this block of code:
      Code:
              <div id="search">
                  <?php get_search_form(); ?>
              </div> <!-- end #search -->
      Comment it out like so:
      Code:
             <!-- <div id="search">
                  <?php get_search_form(); ?>
              </div> -->
      <!-- end #search -->
      Now it's gone but still in the header in case you change your mind at some point.
      {{ DiscussionBoard.errors[7786364].message }}
      • Profile picture of the author David V
        Originally Posted by npaige View Post

        Done. Beautiful!

        Thank you, David.
        You seem to be the main (or only?) person in this area of the forum.Great to see you again. Really appreciate your help.
        Not the only one.....and it's no problem.
        {{ DiscussionBoard.errors[7786376].message }}

Trending Topics