• Hi all,

    I have the free reponsive wordpress theme and I have come across something I cannot resolve via CSS. What I want to do is have the parent menu item retain its active color while the user views a child page. To be more specific here is an example.

    We have a page say called Company. This page has a menu item in the main nav menu. There is a number of pages setup as children to this page in wordpress backend but DO NOT have any menu items. What I want is that when somebody is viewing any of these pages the menu item of the Company page to remain with active color.

    I have tried all CSS ways I have found around but nothing works. I have listed all CSS tried below.

    .menu .current_page_item a,
    .menu .current-menu-item a,
    .menu .current_page_parent a,
    .menu .current_page_ancestor a,
    .menu .current-menu-parent a,
    .menu .current-menu-ancestor a {
    	background-color: #343434;
    }

    Any suggestions anyone?

    Thanks a lot.

    Harry

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Highlight Parent Menu Item while in Child Page’ is closed to new replies.