Archived topic
How do I disable highlighting of categories (for single posts) in the main nav?
9 replies · Started by Hendrik on June 7, 2021

Hi there,
I noticed that for single posts that have more than one category assigned, the main navigation (made up of categories) will show both categories as "active", leading to a confusing navigation state. Is there a way to disable highlighting of navigation items in relation to single posts?
Hi Hendrik,
If you add the category pages by using custom links instead of category, the connection between the menu item and a single post will be gone.
https://www.screencast.com/t/hnmVBhCE
Let me know if this helps :)
It does, thx!
Staying on the same thread, I'd have another question:
My main menu and the page header both have a 30px left and right padding, which shows as white blank space even when those 2 elements are set to full width. I understand that the body container requires that for proper padding on mobile sizes, but is there a way to remove that padding for only the menu and page header?
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
here u go...
The header and footer are full widths by default, you have this CSS which adds margin left/right to the entire site.
https://www.screencast.com/t/Rw7UYB524Q
@media (min-width: 769px) {
body {
margin: 0 30px;
}
}
You can simply remove this CSS, the issue should be fixed.
yeah,I thought of that, but this creates an issue on tablet, where that margin is needed
You should be able to adjust the content padding at customizer > layout > container > Content Padding.
I don't think CSS is needed :)
Let me know if I miss anything.
thanks, resolved!
Nice! You are welcome :)