Menu color after scroll | WordPress.org

[ad_1]

Do you have a link? The code depends on which menu widget you’re using.

I’m using “Sticky Header Effects for Elementor”.

Yes, that’s this plugin. I meant a link to the site that you are working on. I need to be able to see the page code.

The code you tried from here probably wasn’t working because you aren’t using the elementor menu widget. This code should work for you though.

/* Change menu link color on scroll */
.she-header .sf-menu-boosted-elements .boosted-nav-link-def {
  color: red;
}

/* Change menu link hove color on scroll */
.she-header .sf-menu-boosted-elements .boosted-nav-link-def:hover {
  color: limegreen;
}

I included the hover color as well in case you’d like to change that too. Just change “red” and “limegreen” with whatever colors you want.

Let me know if this works for you.

Yes, it worked perfectly!
Just had to add “!important” next to it.
Thank you very much!

 

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