• Hi there

    I have used your plugin on my website
    https://legotec.se/

    Its working fine on every browser except Safari on Mac. In Safari on mac when i go to about or contact page and click on any of the menu What etc it doesn’t scroll to that div.

    Can you please sort this out asap.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    I think the issue is that you have 2 target ids for each section. In your content there are 2 produktionsfragan targets, 2 legotillverkning targets etc. There should be only one target element with a unique id value.

    This is not a plugin issue as every other site I’ve checked works well with Safari on Mac. Try removing the duplicated ids.

    Thread Starter simer123

    (@simer123)

    Hello,

    Thanks for the response

    But there are not 2 produktionsfragan targets there is only 1 the second 1 is mproduktionsfragan thats different .. n also if that would be the case the scroll shuold not work in other browsers too, but its working .

    Its only not working in safari in Mac.

    So please look into this.

    Thanks

    Plugin Author malihu

    (@malihu)

    Having duplicate ids could work on one browser and not on another because browsers have different javascript engines. So we need to check if this is the problem.

    Try the following:
    Open your link https://legotec.se/ in a browser and view the page source.
    Search for produktionsfragan and you’ll see that there are 2 divs with this id value:

    
    <div id="produktionsfragan" class="et_pb_section  et_pb_section_2 et_section_regular">
    <div id="produktionsfragan" class=" et_pb_row et_pb_row_1">
    

    The same thing happens with legotillverkning, jobbar-vi etc.

    I don’t know how you created these id values but try leaving only one of each.

    Thread Starter simer123

    (@simer123)

    Hii

    I found the duplicate Ids and changed them so there is no duplicate ids.

    But its still not working in safari in Mac. When you go to about us or contact page and click on any menu what , why , when. it redirects to home page but do not scroll.

    You can check there is no duplicate Ids now.

    Please help me with this. Its urgent.

    Thanks

    Plugin Author malihu

    (@malihu)

    Can you try adding a delay for scrolling on page load? Go to plugin’s settings and under “Links behavior” insert 300 in “milliseconds delay for scrolling to target on page load” field. Save changes and test your page.

    Thread Starter simer123

    (@simer123)

    Hi

    Tried that. Added 300 there and tested. Still not working.

    Plugin Author malihu

    (@malihu)

    Well then I don’t think the issue can be solved within the plugin. Your theme (or another plugin?) must be using some code that affects Safari.

    When I check your page in Safari (Mac), the links do not seem to be handled by “Page scroll to id” (scrolling animation/speed, position etc. are different than when testing it with Chrome, Firefox, Opera etc. and also the hash values are not appended in Safari address bar).

    I have tested about 20 other websites in Safari and none had this issue (you can test a demo page here). This means that there’s some script in your page that causes this issue (i.e. prevents “Page scroll to id” from doing its thing in Safari).

    You can try enabling the “Prevent other scripts from handling plugin’s links” option in plugin settings but I’m not sure if it’ll help.

    As a last resort, I suggest disabling “Scroll from/to different pages” option in order to have working anchor-points in Safari.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘page scroll to id not working for safari when redirected from another page’ is closed to new replies.