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

  1. Didier
    Posted 2 years ago #

    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.


  2. Dademaru
    Posted 2 years ago #

    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
    Posted 2 years ago #

    it worked! thanks a lot!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields: Nav Menu Field
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic