Thread closed without response > BUG: Anchor links going to the wrong position

Hi, several weeks ago I was attempting to get a bug sorted. and I have some responses initially and then no further updates … and now the thread is closed but it is not resolved yet.

Why is it set to close automatically when the case is not yet resolved?

Ca this be followed up ASAP please: https://theme.co/apex/forum/t/anchor-links-going-to-the-wrong-position-jumping-higher-up-as-page-loads/64778/6

Thanks,

Hello @kirk74,

Sorry for the inconvenience. Please be informed that a topic will automatically closed 10 days after the last reply. No new replies are no longer allowed.

I have inspected your site and this is what I have noticed, under the Upholstery menu item, you have Vintage & Retro, Contemporary, Custom Made and Antique. All of this links will go to the correct section of the page. The only problem is that since the contents of each section is using The Essential Grid plugin, it may take a while to view the page. The grid needs to initializes upon loading the page by which the right section is already on display. By the time the grid fully displays, the section may no longer be in the right place since the height of the page moves as it is affected by the height of the grids that displays in each sections.

I also noticed that you have Leather Restoration menu item. All of the sub menu items were using a relative path with an anchor link which is not recommend as it may create issues in linking the right page or section.

You will need to edit your menu in Appearance > Menus and make sure to use an Absolute path with an anchor like https://example.com/some-page#the-anchored-section.

One thing to note that using a relative path like /some-page#the-anchored-section will only work and scroll to the correct section when you are currently on the “Some Page” page. To make sure that your menu items will work globally, always make sure to use an absolute path such as https://example.com/some-page#the-anchored-section.

Hope this helps.

Hi Rue,

Thanks for the reply. I do usually do absolute links for anchors so I will change that over.

As per the other thread though, this is happening in other sites as well, and it is not an issue with relative links as they are not used in the other sites.

It is definitely an issue with Essential Grid, and the issue you describe, where it goes to the correct place and then the grid continues loading and bumps it … In fact one if your developers in the other thread said this looked like a bug with Essential grid and they were going to follow up. This is the follow up I have been waiting for. … because there is nothing in documentation that says that you can’t use Essential Grid and anchors together … therefore surely there is a way to control the loading order, so that the gird loads first then the anchor instruction occurs… Seems to be something that the theme and Ess grid need to work out together? Ir is there some JS we can use to force it to recalculate after grid loads if anchor has been used??

Thx so much

Hi @kirk74,

I can confirm that this bug is already on our issue tracker, regretfully there is no update with this yet. What we can do for now is to try to load the Essential Grid faster, and you can do it by navigating to Ess. Grid > Global Settings turn off the JS To Footer and turn On the Use Own Caching System

Thanks,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.