Archived topic
change color of 1 menu page
1 reply · Started by Ainara on March 16, 2023
Hello, I would like to know if there is any way to highlight a page in the menu, changing its color unlike the rest, I have been looking at the menu options and it won't let me, when I change the general color obviously the color of all the pages is changed pages and I want to know if there is any way (taking into account that I have the premium version of Generate press) to change the color of only one page, to highlight it.
Hi there,
you would use some CSS.
1. In Appearance > Menus, enable the CSS Classes and give the menu item a CSS class eg. custom-menu
See here:
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes
2. Then you can add this CSS to your site:
.main-navigation .main-nav ul li.custom-menu a {
color: #f00;
}
To set the custom-menu items colors.