Viewing 7 posts - 31 through 37 (of 37 total)
  • Author
    Posts
  • #863155

    Hi,


    @ismael
    : I applied the filter for Safari and it doesn’t help. Just try with a size smaller than 1000 px. Try this:

    Did you adjust the following lines?

    if (strlen(strstr($agent, 'Firefox')) > 0) {
    

    The conditional function above is meant for Firefox, not Safari. For Safari, you can try this.

    if (strlen(strstr($agent, 'Safari')) > 0) {
    

    Best regards,
    Ismael

    #1124756

    Hello to everyone!

    I am writing to this thread as I think my problem is the same as the one described in the title!

    I have a few anchor links in a submenu in a page, and when you visit the page with the anchor link embedded in the URL you have been directed to the wrong height of the page. But when you click on the anchor link (in our case one of the submenu items) while you are on the page the scrolling works just fine!

    Here is an example: https://www.lloyd.nl/eat-drink/#menus

    In order to understand which should be the correct scrolling height, you need to click on the anchor link “menus” on the submenu which is located right below from the first section (next to “book your table” button) again after the page loads for the first time.

    I don’t have the same issue in other Enfold websites.

    See for example here: https://www.hoteldukespalace.com/culinary

    Could you please help me solve the mystery?

    Thank you.

    #1124950

    Hi,

    Thank you for the inquiry.

    That’s quite normal because the scroll script is not used when you manually access the anchor, so the default browser scroll behavior is used without regards to the fixed header. Users have to click on a link, menu or button in order to trigger the scroll script. This is not something you should be worrying about because on normal situations users will not have access to that link, or will they have the intention to manually input the URL in any case. They will visit the site, see the menu, click on it and land on the intended scroll position. If they do have access to the anchor, remove it or replace it with the URL of the page where the anchor or menu section is.

    Best regards,
    Ismael

    #1125861

    Hi Ismael!

    Thanks for your prompt response!

    The thing is that in other cases (i.e here https://www.hoteldukespalace.com/culinary/#terrace) we don’t have the same issue.

    I understand that normally someone would click on the link to go to the section, but sometimes for marketing purposes, you need to post the link with the anchor link embedded on it to direct the guest directly to the section you want.
    And since in another Enfold build seems to work fine maybe you can help me find the issue…

    Thank you.

    #1126694

    Hi,
    Sorry for the late reply, I took a look at your two sites and what stands out to me on the site that has the issue has a lazy-load plugin & autoptimize, which typically is at the root of many issues. Neither of these are showing on the site that is working correctly, but the issue could be something else, it’s really hard to say because there is no way to test for this that provides feedback, you would need to disable everything including scripts and then test everything one at a time. Unfortunately once the issue is found, most people don’t want to go without whatever plugin or script is causing it and start looking for a way around it.

    I can recommend the plugin Page scroll to id to solve this issue, whether it direct linking to an anchor from off-site, same page anchors, or page to page anchors. I’m certain that it will help you. There are a lot of options in it, but the one that seems to help the most is the one that allows it to wait before smooth scrolling to the ID, usually about 300 milliseconds does the trick, it’s just about when the images load so you don’t even know you were waiting.

    Best regards,
    Mike

    #1128229

    Hi there!

    Thank you very much for your help. It was indeed the lazy-load plugin that caused this strange behaviour! I think the images were not loaded properly until you scroll down there and that was giving basically the wrong dimension for the scrolling script since the section was smaller without the images loaded on it.

    Thank you once again!

    Best regards,
    Manos

    #1128360

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 7 posts - 31 through 37 (of 37 total)
  • The topic ‘Jumping to anchors from other pages does't work well’ is closed to new replies.