Change color of one menu tab only

Hi,

I managed to change the background color of one single menu tab. I used this code:

li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-77 {
background-color: #f26c63;
}

For the same tab I would like the text to be white (just for this tab, not for the other ones). Any idea what code I should use? I tried

a li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-77 {
background-color: #f26c63;
}

but it didn’t work…

Thx a lot in advance for your help!

Hello,

Can you please provide a link to your website?

Kind Regards, Roman.

Hi Roman,

here you go: www.tradelab.eu

Thanks a lot in advance!

Hello,

Please try to use the following CSS code.

You can add CSS code in DashboardAppearanceCustomizeAdditional CSS (WordPress 4.7 and up). Also you can add CSS code directly to style.css file of your child theme.

#header .menu-item-77 a {
    color: white;
}

Kind Regards, Roman.

Great! Thanks a lot!

You are welcome! And have a nice day :slight_smile:

Kind Regards, Roman.