Here is the problem. When i load a site with a hashtag in the url (Example Domain) the following error occurs.
Uncaught TypeError: Cannot read property 'top' of undefined
at HTMLDocument.<anonymous> (shapely-scripts.js:30)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at Function.ready (jquery.js:2)
at HTMLDocument.K (jquery.js:2)
I cant link to an example as its on local server. But it happens on two different setups i run.
I hope you are well today and thank you for your question.
Unfortunately, I’m unable to replicate that issue using the description mentioned.
Here’s a screencast where I added an ID, created a menu item.
An error is not generated in the test environment.
Dear @buurdi in order to debug your website its necessary to bring it online, we cant check your problem while it is happening on your localhost, can you upload it?
Dear @buurdi can you tell me what you want to achieve? yes, i see this error code if we type this url in the url bar http://bas.rf.gd/#test but then what? you have to properly use hashtags, they must be called from the menu and must be connected to a page section,
Im trying to make you fix this bug. in one of my websites im using anchor to navigate a one pager. But i had to remove all your “smooth scroll” code and make my own fix to make it work. Because when you navigated from another webpage it would trigger an error and make other elements fail.
Now i have reported the bug, do whatever you want.
In this case, it is a bug in the theme’s smooth scroll feature so we would have to let the developer know of this issue so that an update can be issued out.