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
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
contactis clicked removeClasscurrent-menu-itemfrom "about".
Best wishes
Richard
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login