anchor point - site active
-
Hey.
This is my site: https://www.mikeabmaier.com
The Second menu "contact" (bottom, right) is a link to an anchor-point placed in the about-page:
https://www.mikeabmaier.com/about/#sprungmarke
The code on the about page is this:<p id="sprungmarke"> </p>
It's styled with this css:
#sprungmarke {visibility: hidden; height: 0px !important; position: absolute; margin: -80px;}
It works all fine BUT when i click on "contact", also the about page (link in the menu) is "active" and gets an underline (because "sprungmarke" is on the about page?"
The other way around, when i click on "about", "contact" is also active and gets an underline...
is there a possibility to fix that???(on mobile the links get yellow, no underline)
-
Dear @dingdong
I see! what would you like to achieve as the end result?
-
At what point would you want the "About" underlined and Contact not.
-
Or do you just want that "Contact" never gets underlined, regardless of what is clicked.
Talk soon & best wishes 🌝
Richard
-
-
Dear @dingdong
So you would need some jQuery saying "if
contact
is clicked removeClasscurrent-menu-item
from "about".
Best wishes
Richard
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it