CSS text color for each submenu item

  • Unknown's avatar

    Hello. The following CSS code correctly gives me a different color for all submenu items.
    .wpr-sub-menu-item {
    color: #78be20!important;
    }

    Trouble is, I want to have a different text color for particular submenu items. I’ve tried:
    .wpr-sub-menu-item .menu-item-126{
    color: #78be20!important;
    }
    But this results in none of the submenu items having a particular color. Can someone recommend the correct syntax? Thank you!

    WP.com: Unknown
    Jetpack: Unknown
    Correct account: Unknown

  • Unknown's avatar

    Hi there!

    Can you let us know the URL of the site where you’re having this problem? Once we have that information, we’ll be better able to advise.

    Please note that we can only assist with websites hosted at WordPress.com. If you’re using the WordPress software but hosted elsewhere, you will need to reach out to your hosting provider or the WordPress.org community for guidance:

    https://wordpress.org/support/forum/how-to-and-troubleshooting

    Thank you!

  • The topic ‘CSS text color for each submenu item’ is closed to new replies.