Jump to content
Sign in to follow this  
madmike231

Active Home page in Nav

Recommended Posts

madmike231

I know this is probably something really simple I just cant seem to figure it out. I made the "home" button in my navigation a custom link and it is by default being highlighted with a white box when active. I want it to be yellow when active. Any help would be appreciated. Thanks. http://dirtymexicanlemonade.com/

Share this post


Link to post
Share on other sites
catrina

To change the active link background color, add this CSS code to your custom code area or the base.css file in the child theme:

ul#menu-home li.current_page_item a:hover {background-color: #FFFF00;}


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
madmike231

Hey thanks but that didnt do it. That changed the color of padding when the link is hovered over to yellow. Really I just dont want that gray box around the home in the nav when the home page is active.

Share this post


Link to post
Share on other sites
kastelic

Is this what you're looking for?

.main-nav .current-menu-item a {
	background: yellow !important;
	}

Share this post


Link to post
Share on other sites
madmike231

Yes Jimmy! That was it. I now know what !important does. Thanks a lot

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×