Hello all,
I have built a Wordpress site with a few pages. I am using Blocks for everything. From the menu to the footer. Everything are blocks.
I still have not figured out, in the menu, how to highlight the current page in the menu items.
I am using tailwind CSS.
Did you use a WordPress menu? If yes then it adds this class (current-menu-item) to the menu item when it is the current page. You can style that class.
But since I am using Tailwind CSS… I created a new css file “dunecss.css” and loaded inside my style wp header block.
Result: it partially works! Wordpress applies the font-weight: bold; but not the color property.
I am guessing this is related to some tailwind css style thing.