WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Dropdown Menu Widget] Changing the color of the link of the parent page you are in

[Resolved] [Plugin: Dropdown Menu Widget] Changing the color of the link of the parent page you are in

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looking for the same solution, too. How to add something like .current if we are a specific page/posts!

    I found it!
    just use the li.current-menu-item that’s it!

    That’s not working for me…am I missing something?

    Plugin Author Metin Saylan

    @mattsay

    That option changes on every menu type.
    Because I am not generating menus, wordpress does.

    It is generally for pages menu: li.current_page_item
    for categories menu: li.current-cat
    for custom menus: li.current-menu-item

    I am using this code to change link colors on Web2.0 theme:

    /** Current menu item */
    li.current-cat>a, li.current_page_item>a, li.current-menu-item>a,
    li.current-cat>a:link, li.current_page_item>a:link, li.current-menu-item>a:link,
    li.current-cat>a:visited, li.current_page_item>a:visited, li.current-menu-item>a:visited{ color: #444; font-weight: normal; }
    
    /** Ancestor */
    li.current_page_ancestor>a,li.current_page_ancestor>a:visited, li.current_page_ancestor>a:link { color: #444; font-weight: normal; }
    li.current-menu-ancestor>a,li.current-menu-ancestor>a:visited, li.current-menu-ancestor>a:link { color: #444; font-weight: normal; }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Dropdown Menu Widget] Changing the color of the link of the parent page you are in’ is closed to new replies.