Styling your drop down text

With the basic wordpress install, you are able to nicely style the menu colors etc, but I have run into a problem several times where I use the same color to highlight which page I am on as the color of the background of my dropdown. So if I had a blue nav bar, my menu text is white, my page highlight is white bold and my dropdown menu is white then what happens is if you are on a page in your dropdown, the menu option vanishes into the background.

So what can you do about this?

Looking at the current page item you see this code:

#access ul li.current_page_item > a,
#access ul li.current-menu-ancestor > a
#access ul li.current-menu-item > a,
#access ul li.current-menu-parent > a {
color: #ededed;
font-weight:bold;
}

So all you need to do is add an extra ul in there so you are now controlling the color of the drop down text. Just like this:

#access ul ul li.current_page_item > a,
#access ul ul li.current-menu-ancestor > a
#access ul ul li.current-menu-item > a,
#access ul ul li.current-menu-parent > a {
color: #3579a6;
font-weight:bold;
}

That should solve your problem.

Looking for a Digital Marketing Agency in Jacksonville?

By Dave Fogel | January 23, 2023

If you are not sure what a Digital Marketing Agency does, we have put together some of the most common questions or topics related to digital marketing. As a Full-Service Digital Marketing Agency, NetViper specializes in providing digital marketing services to small to medium sized businesses using the internet and other digital marketing channels such…

Let’s Talk Digital Marketing vs Traditional Marketing In Jacksonville

By Dave Fogel | December 31, 2022

Are you thinking about running Digital Marketing in Jacksonville? Not sure how it compares to traditional marketing? We will try and give you the answers you are looking for.  Keep in mind we are a Digital Marketing Agency, so we might be a little biased. Traditional marketing agencies typically focus on marketing strategies and tactics…

Why Use A Digital Marketing Agency for Small Business in Jacksonville Florida

By Dave Fogel | December 31, 2022

Let’s talk about a Digital Marketing Agency for Small Business.   Why small business? Because we can help you the most in succeeding online. While are many reasons to use a local Digital Marketing agency that focuses on small businesses, let’s start with five good ones to get you started: Local Experts: Digital marketing agencies have…

Posted in

Dave Fogel

Leave a Comment