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?
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
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com