Change background color of menu when in scroll mode

Hi,

Can you please provide the CSS to change the primary navigation menu background color when in scroll mode? I found this code:

.header-scrolled .main-navigation ul ul a {
color: yellow;
}

But it doesn’t work for me. Currently the color is like a light gray, but I’d like it to be white. Thank you!

Hello there,

Please try this code:


.site-header.header-scrolled {
  background-color: rgba(255, 240, 0, 0.9);
}

Regards,
Kharis

Thank you!

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis