[resolved] Can I remove the search from the header? (8 posts)

  1. JDK1313
    Posted 2 years ago #

    Is there a way to remove the search area from the header? It makes the header too big and white on my website. kathrynskitchenblog.com


  2. khansalman
    Posted 2 years ago #

    HI Cathy,

    You can go to header.php file in your theme folder and you can remove this command from your header.php.

    Hope this will resolve your problem :)

    <div id="header-right" class="header-sidebar">
    <aside id="search-box"><!--start of #search-box -->
    <form method="get" id="searchform" class="searchform" action="http://kathrynskitchenblog.com/" role="search">
    <label for="s" class="screen-reader-text">Search</label>
    <input type="search" class="field" name="s" value="" id="s" placeholder="Search …">

    </aside><!-- end of #search-box -->

  3. khansalman
    Posted 2 years ago #

    Best I can advise before you do this.

    Inpsect it with FIrebug and remove it from there and check it if you like or not.

    If you feel its good for you then you can remove it from header.php

  4. WPyogi
    Forum Moderator
    Posted 2 years ago #

    It's really not a good idea to modify theme files directly - changes like this should be made in a child theme so that they are not lost when the theme is updated.


  5. khansalman
    Posted 2 years ago #

    Wpyogi has a valid point.

    If you are using Child theme then you need to remove it from there but if you are using parent theme the you need to remove it from there.

  6. WPyogi
    Forum Moderator
    Posted 2 years ago #

    @JDK1313 - a simpler way to remove that is to use Custom CSS to hide it - if your theme doesn't have a custom CSS option, you can use a plugin such as Custom CSS Manager. Then add this code to that new section in your Dashboard:

    #search-box {
        display: none;
  7. Manish Suwal 'Enwil'
    Theme Author

    Posted 2 years ago #

    Hey @JDK1313

    You don't need touch any code or do anything else as mentioned above.

    Just follow these instructions:
    1) Go to your website Dashboard.
    2) Go to Appearance -> Theme Options
    3) There is a option called 'Enable Searchbar?', click on No.

    This will remove the search bar from the header.

    Hope it helps!

  8. JDK1313
    Posted 2 years ago #

    Thank you everyone for the advice! And I did find it in the theme options, thanks again!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic