Click on active menu point to go back to landing page
Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
2
Posts
1
Posters
272
Views
-
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?
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com