#myslidemenu .nav > li.current-menu-item > a,
#myslidemenu .nav > li.current-menu-ancestor > a { color: #f00; }
Happy new year
Thanks,
it’s working for other pages… but the home link is not highlighted by default, i want the home link to be highlighted by default when i visit my theme the first time. also the background color is changing but, the link color a { color: #f00; } is not changing, on current it showing the default css menu link color.
Do i have to add some extra menu code in my header.php
I think Unisphere is correct but there might be a hierarchy issue with the CSS. Try something like this:
#myslidemenu li.current-menu-item a { color:#B2C629; }
#myslidemenu li.current_page_item a { color:#B2C629; }
I only added the CSS child selectors so that only the top level menus would get highlighted and not the children ULs, in other words, it was intentional
I think Unisphere is correct but there might be a hierarchy issue with the CSS. Try something like this:
#myslidemenu li.current-menu-item a { color:#B2C629; }
#myslidemenu li.current_page_item a { color:#B2C629; }
I only added the CSS child selectors so that only the top level menus would get highlighted and not the children ULs, in other words, it was intentional
Thanks, unisphere
I solved that, it’s working with !important like this
.jqueryslidemenu > li.current-menu-item > a,
.jqueryslidemenu > li.current-menu-ancestor > a { color: #f00 !important; }
But now i want the menu home link to be highlighted by default