Forums

[resolved] wp_nav_menu parent page highlight (3 posts)

  1. designreact
    Member
    Posted 1 year ago #

    Hi,

    I'm new to themes in general. I have a site I'm building using wp_nav_menu
    I have a toplevel page called library and a sub page called gallery.

    As you can see from the links when your on the gallery the library highlight disappears from my menu.

    I'm afraid I don't understand the methods mentioned in other posts (probably due to being inexperienced). Could anybody please give me a 'wordpress for dummies' style breakdown of what needs doing?

    Any help would be much appreciated!

    Martin

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try styling on .current-page-ancestor.

  3. designreact
    Member
    Posted 1 year ago #

    Thats great!

    Though I did find I needed to use

    #access .current-page-ancestor a{
    color: #d90000;
    background-color:#ffffff;
    }

    to get the text to go red.

    Thanks a bunch!!

Topic Closed

This topic has been closed to new replies.

About this Topic