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

  1. NSWP
    Posted 2 years 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:

  2. Mohammad Kamal
    Posted 2 years 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';">

    and delete it.

  3. NSWP
    Posted 2 years 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!

Topic Closed

This topic has been closed to new replies.

About this Topic