[Resolved] current-menu-item

Home Forums Support [Resolved] current-menu-item

Home Forums Support current-menu-item

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #71122
    Dev

    Happy to be a new customer here.
    On this support page, I see that current menu item is highlighted in Blue and menu has “current-menu-item ” css class added to it. However, when I implemented GP theme on my site, I don’t see this class getting added. How was this accomplished.

    Thanks,
    -Dev

    #71382
    Tom
    Lead Developer
    Lead Developer

    Hi Dev,

    WP adds this class to menu items when you’re on that specific page – do you have a link to a page that isn’t highlighting the menu item?

    #71398
    Dev

    Thanks Tom. I was expecting that class by default as well but it is not there. Nav menu points to “Pages”.
    Here is the link: https://www.cloudpuffin.com/

    #71409
    Tom
    Lead Developer
    Lead Developer

    Are you using custom links for your navigation? WordPress doesn’t know what item belongs to what page when you use custom links – you need to add the menu items from the “Pages” area in order for WordPress to know the relationship.

    Let me know 🙂

    #71422
    Dev

    Tom, you nailed it !!

    Thank you very much.

    #71510
    Tom
    Lead Developer
    Lead Developer

    You’re welcome!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.