• Resolved jamminjames

    (@jamminjames)


    I notice that the active page will be highlighted in the menu, except when it’s a submenu item. I tried all sorts of things with css, but can’t find the correct way to make that work. Is there a way?

    Thanks for any help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi James,

    Current submenu items would be highlighted by default as well with the standard skin. Do you have a link to the site where you’re seeing the issue?

    Thread Starter jamminjames

    (@jamminjames)

    Okay, now I notice the difference — it does highlight the submenu item, EXCEPT when that item is set up in WP Menus as a “custom link”…

    Notice the difference in these two links:

    Regular “page” submenu item:
    https://www.humortimes.com/cartoons/polichics/

    Custom link submenu item:
    https://www.humortimes.com/25207/michael-egan-cartoons/

    In WP’s Menu, the custom link has a url of /?p=25207

    … is there any way to change this behavior?

    Thanks.

    • This reply was modified 8 years, 4 months ago by jamminjames.
    • This reply was modified 8 years, 4 months ago by jamminjames.
    Plugin Author sevenspark

    (@sevenspark)

    WordPress core determines which items are considered “current”. For custom links, I believe it compares URLs to determine equivalency, so you’d want to make the custom link in the menu the same URL as the page URL.

    Hope that helps 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Highlight active page when a submenu’ is closed to new replies.