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.
Blocking Spam Bots
If you frequently look at your Google analytics and notice you all of a sudden have a huge increase in traffic, you might start getting really excited. The site is finally taking off! Or is it? There is a good chance that bots have started hitting your website. So how can you find out? First…
WordPress Easy Modal and Gravity Forms
If you are looking to create a modal box on your site with a gravity form, there is one issue we have run into a few times that can cause you a lot of headaches. The people at Gravity Forms recommend using Easy Modal for modal boxes with WordPress. In the first instance, we were…
Is your site mobile friendly
Making sure your website is mobile friendly is now more important than ever. But how can you be sure you are mobile friendly? Google has created a testing tool so you can test for yourself. It is pretty simple to use. Just type your website into the tool and see what happens. If your mobile…