WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Sidebar Menu
[resolved] current menu item (3 posts)

  1. hansford77
    Member
    Posted 1 year ago #

    I am having trouble with the Advanced Sidebar menu - the current page, its parent and all its siblings are being treated as a single menu item for highlighting purposes. Can this be fixed? thanks.
    eg http://109.123.74.31/~sheffiel/?page_id=32

    http://wordpress.org/extend/plugins/advanced-sidebar-menu/

  2. Mat Lipe
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,
    The issue you are having is caused by your css targeting the li elements.
    This line exactly:

    #sidebar .box li:hover {
    background: url(../images/noise.png) #636E75;
    }

    The child menus are inside the li elements of the parent menu and therefore are all highlighted.

    To highlight the single link you will have to adjust your css to target the 'a' elements instead of the 'li'. Something like this

    #sidebar .box li a:hover {
    background: url(../images/noise.png) #636E75;
    }

    You will most likely want to adjust the padding and such on the 'a' elements as well to achieve your desired highlighting effect.

    Hope this helps!

  3. hansford77
    Member
    Posted 1 year ago #

    You are a complete star! thanks so much for such quick help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.