Hi Guys,
Just updated to 4.1.2 – All seems good. Only one thing I’m having trouble with.
When I search something that’s not on the website it says nothing found, like it should BUT, I would like to turn off it suggesting I look in
PAGES, CATEGORIES and ARCHIVES.
Cheers – Hope you can help!
Hey Shane,
Try to update the permalinks at Dashboard > Settings > Permalinks.
Best regards,
John Torvik
Hi John,
Probably didn’t explain it very well. I mean the error page (when nothing found) has a section on the right hand side under a heading of PAGES. It lists all the pages on the website and this is what I do not want. I think it may be changing the code on the 404 error page in the theme editor?
Cheers,
Shane
Hi Shane,
Thanks for the clarification, please try the following in Quick CSS under Enfold->General Styling:
.search-no-results .sidebar {
display:none !important;
}
Best regards,
Rikard
Hi Rikard, That worked a treat. Thank you.
One more thing that I think is related.
If I go to a page that does not exist, I get a 404 error page that still has the unwanted sidebar styling.
Is there some CSS to remove the PAGE ref as well.
Cheers!
Hi,
Please try this instead of what I previously sent:
.search-no-results .sidebar, .error404 .sidebar {
display:none !important;
}
Best regards,
Rikard
Hi Rikard, Just perfect – Many Thanks!
Hi,
You are welcome :)
Best regards,
John Torvik