Deleting Search Field from Header
-
Hello,
I’m new to CSS, and trying to delete the search field at the top. It’s not a widget.
I’m on chrome, and used the inspect element, but I’m unsure how to proceed.
Thanks.
The blog I need help with is: (visible only to logged in users)
-
Hi @jolus41,
To change how an HTML element look in your page, you need to target it with CSS a selector. A lot of times, a selector will be the id of the HTML element you want to change, or a class that is being applied to it (through the “class” attribute in the HTML). For example, if you right click on that search box and select “Inspect Element”, you will see that a
- tag with the class “search-trigger”. You can use that class to target the search box and hide it with the “display” property:
.search-trigger { display: none; }
Here is more information for you on how to use your browser’s developer tools to find CSS selectors: https://dailypost.wordpress.com/2013/07/25/css-selectors/. Hope you’ll find that useful :)
- tag with the class “search-trigger”. You can use that class to target the search box and hide it with the “display” property:
-
Oops, seems I broke the layout with an open “li” tag. Could someone edit my post to fix it? Sorry for that :/
-
- The topic ‘Deleting Search Field from Header’ is closed to new replies.