Forums

[resolved] How highlight the parent of the current page in a menu? (2 posts)

  1. sinigagl
    Member
    Posted 1 year ago #

    Hi,
    I would like to highlight the parent of the current page in a menu on WP 3.0.1.

    I have a sidebar menu where only the child are shown and I have a main menu in the header where only the parents are shown.

    In the header I create the menu with: wp_page_menu('exclude=48&depth=1');
    I can have the ID of the parent of the current page but I don't know how to tell to WordPress to apply the current_page_item CSS class to that menu item.

    Thanks a lot!
    Ciao

  2. sinigagl
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic