Click on active menu point to go back to landing page
-
Hello!
I have a script to go back to my landing page when clicking on an active menu point. Problem is, that it is a hard refresh and not a smooth change of content, like when you use a data-id as link. The script looks like this:<script> jQuery(document).on("click", ".current-menu-item", function(event) { document.location.href="/"; }); </script>I can't figure out how to make it smooth.
Link: www.felixrabe.de -
@Richard maybe you can give me a clue for this issue?
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