One Page Anchor Links Not working on mobile
Once again this issue with not working anchor links on mobile menue views. Getting a weird script error about an offset not defined, but I can not figure out what it is exactly:
"Uncaught TypeError: cn.find(...).offset() is undefined"
Site is already live and help is much appreciated. thx.
There is an unusually high amount of errors in the
console, could you please make sure of the following:
Wordpress, Lay Theme & Laytheme's Addons are all up to date ?
Any custom CSS or JS that may interfere is temporarily removed.
Any third-party plugins are de-activated to see if this resolves the issue.
If using a WordPress Cache plugin, disable it or clear your cache.
License key not activated - (in website blank situations or button not available)
If your WordPress Dashboard shows a warning "PHP Update required” Please update your PHP version in your webhost control panel.
Possibly your website is running PHP 8.0 this has been known in some cases to cause issue.
Also to be sure when setting up the Anchor Link:
The url path is indeed linked to the ID # of an Element in which to scroll to. No Custom Code is being applied to change the behaviour of the Anchor scroll that could be interfering .
Talk soon 🌝
Thanks Richard, I have finally found the issue. And it's not bug rather a simple issue that I set up the IDs for the Desktop Layout and they have not been synced to the Phone Layout.
So all is good. Thx.
Before you post
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it