WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't delete search box from child theme (3 posts)

  1. NSWP
    Member
    Posted 6 months ago #

    I am trying to delete search box from my child theme but it does not seem to work. I'm using Safari/Chrome inspect elements to find what lines to delete. It shows line #35. I delete it in my style.css file and update and it does nothing. Any suggestions?

    site link:
    http://www.nickschelin.com

  2. Mohammad Kamal
    Member
    Posted 6 months ago #

    Go to widgets and check if the search widget is active, if it's not, check sidebar.php and look for something like:

    <form role="search" method="get" id="searchform" action="http://www.nickschelin.com/">
    
            <input type="text" name="s" id="s" value="Search" onclick="if(this.value == 'Search') this.value='';" onblur="if(this.value == '') this.value='Search';">
    
            </form>

    and delete it.

  3. NSWP
    Member
    Posted 6 months ago #

    No luck on the widget suggestion and sidebar.php has nothing like the example you suggested.

    actually... while typing I just tried changing the width and height to 0 px and its gone!

Reply

You must log in to post.

About this Topic