<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>CSS color for specific submenu items

[ad_1]

Replies: 5

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer