Plugin Author
wizzud
(@wizzud)
I’ve updated CMW (v3.2.6) with a small change that adds a cmw-current-item
class to the menu item that CMW is using as its “current menu item”.
Note that this does not affect any class that WordPress assigns – which should include the current-menu-item
class – and it merely indicates which of the output items (if any) CMW decided to use (internally) as its current item.
Hi!
This was very quick, and great! Thank you, “current menu item” class works fine!
Kind regards,
Jozsef
hi,
I can’t seem to make this work. I added the following to style.css
.cmw-current-item {
font-weight: bold;
}
but nothing happened. I tried with and without the dot before the class name.
Can you please help me out on what I do wrong?
Thanks!
Vera
Hi Vera!
Usually menu items also has links as child. So you may need to style that for example:
.cmw-current-item > a {
font-weight: bold;
}
Check generated source code for particular details.
Kind regards,
Jozsef
hi Jozsef,
that helped, thanks a lot!
Vera