Support » Fixing WordPress » How to get rid of the SEARCH BAR?



    I’m a beginner and I can’t get rid of a search bar at my webpage. I’ve been asking for help in forums and all I’ve got is that search bar doesn’t work anymore but it’s still there.
    What I did is delete some text in header.php:
    <div class=”searchbox”>
    <form id=”searchform” action=”<?php bloginfo(‘url’); ?>/” method=”get”>
    <div class=”search-field”><input type=”text” value=”Search …” onfocus=”if (this.value == ‘Search …’) {this.value = ”;}” onblur=”if (this.value == ”) {this.value = ‘Search …’;}” name=”s” id=”s” /></div>
    <div class=”search-but”><input type=”image” id=”searchsubmit” value=” ” src=”<?php bloginfo(‘template_directory’); ?>/images/spacer.gif” /></div>
    After it gave me no result I also accordingly modified style.css and style_ORIGINAL.css in my theme folder. NOTHING.

    I would appreciate Your help so much!..

    Thanks in advance and have a nice day.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello Linas,

    I am having the same problem. Perhaps you have learned how to do this and can share your information?


    Where does the search bar show? Is it in the sidebar?
    If so check that you have not got it added in your widgets.
    If you have not then take a look at sidebar.php and you will probably find it coded in there.
    I’m happy to take a look if you can’t find it.


    Search box searching details from the blog itself and if your database is not contains details then it can not be found any result..

    If your search box is in header then you can remove it from header.php file and if it is in the sidebar then it may be from widget or from sidebar.php file of your theme..


    Shane G.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get rid of the SEARCH BAR?’ is closed to new replies.