Archived topic
How to disable secondary menu on search page and 404 page?
5 replies · Started by Paul on November 6, 2017
My secondary menu and a sidebar are displayed on my search results page and the 404 page.
https://www.screencast.com/t/wajrzYg9A
Since those pages are not editable as are all others, how can I remove those elements?
Thanks!
Hi there,
Try this CSS:
.error404 .secondary-navigation,
.error404 .sidebar,
.search-results .secondary-navigation ,
.search-results .sidebar {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Leo
Great that works well - thank you
How about the search results page, how do I address that page in the CSS code?
http://pastorschaller.com/site8/?s=soccer
Thanks
Works perfectly.
Top class support as usual
Thanks!
No problem :)