WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields: Nav Menu Field
[resolved] Highlight parent and ancestor menu items (3 posts)

  1. Didier
    Member
    Posted 10 months ago #

    Hello,
    I'm using Nav Menu Field successfully at http://analyze.ch with a child theme of Twenty Twelve, custom menus based on pages, not posts/categories. Additionally, the first level navigation items are "Redirect to child" only. So far everything works. My only issue ist that I did not find out how to highlight parent and ancestor menu items. Fors instance, at http://analyze.ch/film/corporate/osteology-foundation/ I'd like to have FILM and CORPORATE highlighted (font-weight:bold). Have found a lot of forum discussions about that issue, but not in cennection with custom menus and Nav Menu Field. Every answer is highly appreciated, thx in advance.
    Didier

    http://wordpress.org/plugins/advanced-custom-fields-nav-menu-field/

  2. Dademaru
    Member
    Posted 9 months ago #

    Hi,
    edit your theme's stylesheet.
    To highlight FILM and CORPORATE add
    .current-page-ancestor > a {font-weight:bold}
    more here: http://codex.wordpress.org/Function_Reference/wp_nav_menu#Menu_Item_CSS_Classes

  3. Didier
    Member
    Posted 9 months ago #

    it worked! thanks a lot!!

Reply

You must log in to post.

About this Plugin

About this Topic