Support » Themes and Templates » Remove searchbox
5 years, 1 month ago
I need to remove the searchbox on nillerpilfinger.dk, but I can’t find the script that calls it. Here the php for the header:
[Code moderated as per the Forum Rules. Please use the pastebin]
First, make sure you are using a Child Theme. In the style sheet for your child theme, add this bit of CSS:
That will set the display of the search box to none and it will not affect the flow of your layout either.
Hope this helps!
But I’m not using a child theme (I knew how to do that) and I want to remove the searchbox from THIS theme.
you need to remove the div from the navigation section (probably in header.php). Search for <div id="search"> and remove (maybe comment out first just to make sure) everything up and including the closing </div> after the </form> tag.
Hope this helps.
I suggested a Child Theme because if you make changes to a theme (not a Child Theme of the theme) your changes can be overwritten in the future if the theme is updated.
In your CSS style sheet modify:
Good luck with your site!
Much better idea, thanks Christi. Ligefrem, follow Christi’s advice, make your changes in a child theme so you dont lose anything if you upgrade your theme.