I have a WordPress system. The problem is my nav menu.
I have a link to a subsite in my menu and an anchor point to a part of the main site.
So if I link the anchor like this: #test it works on the main site. If I want to click this on the subsite it doesn't work.
If I link the anchor like this: http://localhost/#test it works on the sub site.
But on the main page the anchor is highlighted. I know that it's because it's a current-menu-item, but I don't want it highlighted. I could style the class current-menu-item like the normal color.
But I want that the active link is highlighted.
My thoughts of the answer was that maybe I link it like this: #test and then I redirect the link to this: http://localhost/#test
But it would be nice if there is another solution. I could not find something about this topic in the www. If anyone has a nice documentation it would be nice.
Thank you for helping me :)