I just updated from Pro 1.2.7 to 2.1.5. Prior to update, the local /#visit link in my main nav did not have a “active” class applied until the nav item was hovered. It worked perfectly.
Now [class*=“active”] is being added by Pro whether the link is hovered or not (presumably because the ID is on the current page). I’d like it to work the way it did before.
The nav link scrolls the user down the same page.
It works properly inside the Pro header builder but not on front end.
.e927-5.x-menu > li > .x-anchor[class*=“active”] {
background-color: #0065a4;
}
.e927-5.x-menu > li > .x-anchor {
font-size: 1em;
background-color: transparent; // this is being overridden by active class above even when not hovered
}
<li class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item
menu-item-home menu-item-2071" id="menu-item-2071">
<a class="e927-5 x-anchor x-anchor-menu-item x-always-active" tabindex="0" href="http://wordpress-126497-
362238.cloudwaysapps.com/#visit">
<span class="x-anchor-content">
<span class="x-anchor-text"><span class="x-anchor-text-primary">Visit Us</span></span>
</span>
</a>
</li>