Archived topic
change menu Item color
7 replies · Started by Stefan on November 3, 2022
Hi,
how can I change the background color of a menu item individually while selected or hovered? the problem is, every single menu item shall get a specific color.
Thanks for help :-)
Hi there,
Would this solution work?
https://docs.generatepress.com/article/adding-buttons-navigation/
Let me know :)
Hi,
thanks for the solution but I still have the button navigation. Now I need a solution for changing the color when I hover or select the buttom.
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
sure. link and user should be in private information
This selector should work for the hover:
.main-navigation .main-nav ul li.nav-button1:hover
And this should work for the current:
.main-navigation .main-nav ul li.nav-button1[class*="current-menu-"] > a
The selector is exactly what I need. Thanks a lot
No problem :)