WordPress.org

Ready to get started?Download WordPress

Forums

How to get rid of the SEARCH BAR? (4 posts)

  1. linasmatulis@gmail.com
    Member
    Posted 5 years ago #

    Hello,
    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>
    </form>
    </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.

    Linas;)

  2. pusherpro
    Member
    Posted 5 years ago #

    Hello Linas,

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

    -Mike

  3. drinkingsouls
    Member
    Posted 5 years ago #

    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.

  4. Shane G
    Member
    Posted 5 years ago #

    Hi,

    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..

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic