- This topic has 13 replies, 1 voice, and was last updated 2 years, 1 month ago by
Varga.
-
AuthorPosts
-
January 27, 2020 at 10:57 pm #1146474
Andres
Hi!
I’m setting up a website with GP, and the one thing I can’t get to solve is that the menu items, for which I have anchor links, stay with their hover colors after I click on them, and it doesn’t stop until I click somewhere else in the website. How can I solve this? thanks.
January 28, 2020 at 8:17 am #1147202David
StaffCustomer SupportHi there,
best way to do that is using this plugin:
https://en-gb.wordpress.org/plugins/page-scroll-to-id/
They even provide a guide for setting up with Elementor
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 4, 2020 at 6:34 am #1154018Andres
Hi David!
Thank you for your answer. Unfortunately, an extra plugin doesn’t sound like the right way just to correct the highlight bug. The anchor links and the animation is fine, I just don’t understand why the link keeps highlighted, it just makes no sense. Don’t you think another solution might me more reasonable? Thank you.
February 4, 2020 at 8:01 am #1154326David
StaffCustomer SupportWhat seems like a very simple feature is actually rather complicated, which is why that plugin has over 100,000 downloads.
It also highlights the menu items based on user scroll – so it doesn’t just display the last link that was clicked.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 5, 2020 at 2:34 am #1155084Andres
Ok, I’ll try it. Guess I’m just obsessed on keeping the website like, that’s why I went for GP theme, but I’ll install de plugin and see if that works. Thanks!
February 5, 2020 at 2:50 am #1155102Andres
Hi David!
Ok, I tried it, and it didn’t work. The last menu element clicked remain highlighted, even if I keep scrolling, until I click somewhere else on the screen. Any other ideas on how to solve this?
Thank you.
February 5, 2020 at 3:26 am #1155136Andres
I mean, the plugin effectively highlights the section of the menu that is in view, but the last element clicked remains highlighted as well, unless I click again somewhere else. You can check it at the website. Thanks.
February 5, 2020 at 3:56 am #1155174David
StaffCustomer SupportDid you resolve the issue ? As its only keeping the clicked item highlighted on my browsers
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 5, 2020 at 10:18 am #1155732Andres
Hi David!
But does it remain highlighted when you scroll? ‘Cause that’s the problem of always, and keeps happening to me. i.e. I press on “Garantia”, and it highlights and scrolls to the section, but then “garantia” keeps forever highlighted even if I scroll somewhere else, until I actually click somewhere else in the website.
February 5, 2020 at 10:27 am #1155743Andres
Oh, and in mobile it’s worse, all the elements of the menu you click remain highlighted forever.
February 5, 2020 at 11:38 am #1155822David
StaffCustomer SupportHave you checked the plugins documentation ?
http://manos.malihu.gr/page-scroll-to-id-for-wordpress/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 5, 2020 at 11:09 pm #1156212Andres
Yes, that’s how I managed to make the scroll highlight work, but I’ll go through it again and come back to you to see if I could solve it. Thanks!
February 6, 2020 at 2:51 am #1156344David
StaffCustomer SupportLet us know how you get on – sorry we don’t have a simpler solution.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 27, 2020 at 10:07 am #1595884Varga
Hi!
I had the same problem.
This css solved:
.menu-item a:not(.mPS2id-highlight){
color:#666 !important;
} -
AuthorPosts
- You must be logged in to reply to this topic.