Sticky Menu font color changing while scrolling

Hello,

In theme sydney I use a menu with the classic black background and white font color. But unfortunatelly my header image is mostly white on the edges and my menu options not displaying so nice.

How could I achive, when I still not scrolling the font color be black and when I start to scrolling change it to white?

Thanks in advance!
Tamas

Hello Tamas,

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.

#masthead #mainnav ul li a {
    color: black;
}

#masthead.float-header #mainnav ul li a {
    color: white;
}

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

Hello Roman,

Thank you very much, it looks perfect! :slight_smile:
Just one small question still, In theme Sydney if the screen is not width enough, the menu is collapsed. In this case I would need a white font color site-title. Could you help me, how can I set that?

Thank you!
Tamas

Hello Tamas,

Can you please provide a link to your website?

Kind Regards, Roman.

Hi,

Yes, sure:

http://programozzteis.hu

But your previous solution is not yet implemented, I only had time to a quick test and it worked properly.

Thanks your support!
Tamas

Hello Tamas,

It looks like you don’t have the site title. Can you please explain how you added the text that is currently there?

Kind Regards, Roman.