WooCommerce Menu Cart
[resolved] current-menu-item not assigned (4 posts)

  1. rbergeron81
    Posted 2 years ago #

    When I click on the cart in the menu, the current-menu-item class doesn't get assigned to it.

    So it doesn't get highlighted with the background color like the other items in the top menu, my account and shop.



  2. Jeremiah
    Plugin Author

    Posted 2 years ago #


    That isn't a function of this plugin. The plugin isn't assigned to an actual page in the same way that your other menu items are, so it won't be highlighted when you click on it. We may look into changing this behavior in the future, but it's not our top priority at this time. We'll look into this after our next release, though!


  3. rbergeron81
    Posted 2 years ago #

    Thanks Jeremiah.

    I appreciate the quick reply and the plugin is great btw.

    In retrospect, I suppose this feature isn't that important. Just being picky I guess.

  4. Jeremiah
    Plugin Author

    Posted 2 years ago #

    You're very welcome, and I'm glad you enjoy the plugin. :) I also really like the way you suggested this feature, as I hadn't thought of simply finding a way to add an active state to the item on click. That perspective may help in sorting out how to best get this done. Be sure to let us know if you need anything!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce Menu Cart
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.