The color of the current menu item in the navigation
-
I have changed the current menu item by using this code:
#masthead .main-navigation .current_page_item a { color: #fa5a00; }But the last item in the navigation “Press” and because it’s not a normal page “Category Page”, the color remain gray.
I appreciate any help to change the color of the category page.
The blog I need help with is: (visible only to logged in users)
-
Hi.
Your code makes your current menu item text to be orange. This seems to work even for your Press option.
I have seen, however, menu options -except for Press- become orange on hover (when the mouse pointer is over them). This is because there are rules describing this color change for any one of the other menu options. What you maybe need is the equivalent CSS code for ‘Press’ option. If so, here it is:
#masthead .main-navigation ul li#menu-item-1798 a:hover { color: rgb(250, 90, 0); }I hope this helps. In other case, please make us know :)
-
Thank for the reply.
Actually, I solved my problem few hours ago (by changing press from being category page to post page) and I was about to post that here, but in your post, you let me notice that I have written item no. 1798 as 1793, that is why it was not changing to orange while hovering.
thank you again.
-
- The topic ‘The color of the current menu item in the navigation’ is closed to new replies.