Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

woocommerce Storefront theme primary navigation menu :active doesn't work

This is my website graceamaron.com

It was wordpress hosted site.

I have changed the primary navigation menu hover from default to #4fff51 by the below CSS.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

.storefront-primary-navigation ul li a:hover {
    color : #4fff51;
}

And now I have tried to change active menu color by below code

.storefront-primary-navigation ul li a:active {
    color : #4fff51;
}

But it’s not working, how can I fix it?

>Solution :

Your WordPress theme adds the class current_page_item to the li item that is active. So if you want to change the active page URL color in the nav menu use the following class:

.current_page_item a {
    color: red!important;
}

See screenshot to see it working.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading