WordPress.org

Forums

Dynamic Widgets
[resolved] Highlight current page in custom menu? (3 posts)

  1. wilddoktor
    Member
    Posted 2 years ago #

    I *love* this plugin! Will donate when I get paid for the site. :-)

    Question: Can I somehow highlight the current page?

    For example: Say I'm on this page, which is nested a couple layers deep. I'd love for this specific page to be highlighted in the custom menu on the left; I think users would better see where in the site they currently are...I think it would be nicer than the breadcrumbs.

    Possible?

    Thanks!

    http://wordpress.org/extend/plugins/dynamic-widgets/

  2. Michael
    Forum Moderator
    Posted 2 years ago #

    use the css class output by the custom menu;
    http://codex.wordpress.org/Function_Reference/wp_nav_menu#Menu_Item_CSS_Classes

    example:
    .current-menu-item a { font-weight: bold; }

  3. wilddoktor
    Member
    Posted 2 years ago #

    Brilliant! Thank you alchymyth!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Dynamic Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic