Adding Active Class to Menu Item
-
I am having trouble with highlighting/marking a page as active in my site’s main navigation. When on the “Shop” page, the “Shop” link in the navigation is not being marked as active, rather the “Book” link is, which is not correct. The “Book” link is a link to a product page, where the “Shop” link is the main shop page of the site. Does anyone have any clues as to why the “Book” product link in the navigation is marked as “active” while on the “Shop” page? I understand that I need the active page to have the current-menu-item class but for some reason the wrong page is being given that class. I am also using Woocommerce.
- This topic was modified 2 years, 7 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding Active Class to Menu Item’ is closed to new replies.