Anchor links on one page not working correctly
Please see my recorded screencast of the issue: https://screencast-o-matic.com/watch/crhb1EVfaKv
Hi, after a recent WP update, anchor links used to scroll to a certain section of a page is not functioning anymore. Previous to update, there was no issue.
When the link to anchor on the menu is clicked, page will scroll to an incorrect section of the page - and not to the corresponding anchor link.
I find that sections that are affected are ones where "Slider" functions are enabled. If an anchor follows a section where there is a "slider" or "audio player", then the anchor link doesn't scroll to the right sections.
Please advise.
Comments
Hi,
Please always attach a link to your website so we can check it out. If the page is offline(localhost), then our help will be limited. You will have to contact us when the page is online. Also, please make sure that the page is not under maintenance before you provide us the link.
Thanks
Hi,
This is the link https://ivanobolensky.com/
Thanks,
Please turn off all of the plugins, refresh your cache, and check if the issue persists.
Moreover, if you are using a child theme, switch to parent, and recheck it.
Thanks
I already did that but issue is still there.
Please send us WordPress dashboard access privately thru the contact form, which is on the right side at http://themeforest.net/user/muffingroup#contact, and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Thanks
I just sent the credential to the site
The links in your menu items were incorrect. Instead of HTTPS, there was HTTP, and it was causing this issue.
I changed the first 4 links, and it is working with them.
Please, check this out.
Thanks
It works when you are in the same page, but when you click from another page still doesn't anchor correctly!
I noticed that there are a couple of HTML errors on this page.
Please open your website in Firefox HTML mode (CTRL+U) and check the HTML errors you got. Please fix them first, and check if the issue persists.
Thanks
I fixed the html errors but still have the same issue
Sorry, but I still see these errors on this page.
Are you sure that you fixed them? Please, open every item where you used HTML tags, and ensure that you placed and closed every one of them correctly.
Thanks
Hi, I did fix all the errors on this page https://ivanobolensky.com/novel/
This page has a bunch of content that is loaded after a while. First, it leads to the ID, and after that, it is pushed down because of this content. You can notice that by hiding sections one by one and checking if the anchor link works correctly.
Unfortunately there is no easy way to get around that, and I can only recommend you rearrange the structure of this page and use items with a static height.
Best regards