• 0
Sign in to follow this  
Followers 0

CSS Help - can't get "a:active" to work on menus with category sub-pages

Question

Posted · Report post

I'm working on a site with a custom submenu (under the "Music" tab) of categories and for some reason can't get "a:active" or "current_page_item a" to show grey text on the active page. I also noticed that on any main menu page with a sub menu, the active state does not show on those pages. Can anyone help? Thanks.

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

Hi, The reason why this isn't working I think is that your "Music" menu item is actually the same URL for the mixes sub menu. When you view your menu using Firebug or Chrome's web dev tool, your menu item Music has no selector for current page for the reason above. You would need to change the URL of the Music menu item so that it does not use the URL for mixes. Then current page/menu item will work.

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  
Followers 0