Navigation menu colour
-
Hi There,
I’m working on this client site: http://deannaradford.net/wordpress
When you hover over the top navigation menu, the background colour for the links with pull down options (services, about and language), is black. I’d like to change it to grey but haven’t been able to figure out how to effect this using the colour customize option.
I’m using the free Pure and Simple template.
Can you help me?
Thank you!
Deanna
-
I also want to do this. Anyone help?
Hello there,
In order to change background color on hover on drop-down items you can add this code to your child theme style.css or in plugin like “Simple Custom CSS”:
@media screen and (min-width: 783px) { .primary-navigation li a:hover, .primary-navigation li:hover a { background: red; /* enter your color */ } }Regards
That worked great! THANK YOU!
Now how would I change the black background on the Mobile menu an its backgrounds?Great 🙂
In order to change that you would need to add this:
.site-navigation.toggled-on a { background: blue; /* for all items */ } @media (max-width: 767px) { .nav-menu .current_page_item > a, .nav-menu .current_page_ancestor > a, .nav-menu .current-menu-item > a, .nav-menu .current-menu-ancestor > a { background-color: yellow; /* for active (current) item */ } } @media (max-width: 767px) { ul.nav-menu > li > a:hover, ul.nav-menu > li > a:focus, ul.nav-menu > li > a:active { background-color:red; /* hover for top level items */ } } @media (max-width: 767px) { ul.sub-menu > li > a:hover, ul.sub-menu > li > a:focus, ul.sub-menu > li > a:active { background-color: tomato; /* hover for sub level items */ } }Regards.
Hi There,
We hope you got the solution of your issue, if not then please let us know.
As well as @nemanjac thank you for the solution.Thanks
The topic ‘Navigation menu colour’ is closed to new replies.
