How to add CSS class nav menu (Block Theme)
-
Hi,
Been using classic themes and customising for a while. Been testing out some block themes (Spectra One, Twenty Twenty Four, etc.). I have created a menu/navigation block and it works fine. Now I have some posts that do not appear on the menu, say news or blog posts or something similar. I still want the Blog menu on the navigation block to be highlighted and the ancestor menu item. On a classic theme I was able to do this (a hook, menu walker, etc.) but understandably a block theme works different. So the question is how do I hook into the navigation block to inject a custom CSS class to the specific menu item I want to be the ancestor?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to add CSS class nav menu (Block Theme)’ is closed to new replies.