Black Friday Sale! Get up to $40 off GP Premium!Learn more

Reply To: diferent menu items colors according to state

Home Forums Support diferent menu items colors according to state Reply To: diferent menu items colors according to state

#189364
Bogdan

After reading other similar posts, i found this working:

Setting from customizer gives colour1.

/* for hover */
.main-navigation .main-nav ul li.my_class a:hover {
      color: #colour2;
}

/* for selected/current */
.main-navigation .main-nav ul li.current-menu-item.my_class a {
      color: #colour2;
}

Did not tried to solve colour4, works nice like this.
my_class is item-specific custom CSS class set in Menu Items.

  • This reply was modified 4 years, 7 months ago by Tom.