Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1344663

    I have a page that uses the Accordion toggle for a lot of content (tall page). We have links directly to certain toggles from other pages. If you click on those links, it opens the page with the correct toggle open properly, but the window doesn’t scroll down to the open content. This happens properly on some browsers, some times, but most of the time it doesn’t. I think it has something to do with page load time. Any solutions??

    #1345114

    Hey Christie,

    Thanks for contacting us and sorry for the late reply!

    I checked your page however I could not find “toggle-id-14” anchor point in your source code. Could you please let us know the steps we should take to reproduce the issue if you are still experiencing it? :)

    Best regards,
    Yigit

    #1345159

    Updated link below

    #1347094

    Hi,

    Thank you for the inquiry.

    The page should scroll automatically to the open toggle on load. This is declared in the config-templatebuilder/avia-shortcodes/toggles/toggles.js file > trigger_default_open function around line 160.

    window.scrollTo(0, container.offset().top - 70);
    

    It is possible that a plugin is preventing the page from scrolling to the active toggle. Have you tried disabling the plugins temporarily?

    You should also update the theme to version 4.9.2.1 as soon as possible.

    Best regards,
    Ismael

    #1347197

    Even with Enfold updated and all the plugins turned off, it doesn’t anchor.

    #1347239

    Hi,

    Can we access the site? We would like to check the script and test why it doesn’t scroll to the open toggle. Please post the WP and FTP details in the private field.

    Best regards,
    Ismael

    #1347338

    Sure, here you go!

    #1347402

    Hi,

    Thank you for the info.

    Looks like the document is actually scrolling to the active toggle but then it goes back up when the page is done loading. In the enfold/config-templatebuilder/avia-shortcodes/toggles/toggles.js file around line 46, you will find this code which causes the document to animate or scroll to the opened toggle and this is working properly but then something else causes the document to jump back up.

     $('html:not(:animated),body:not(:animated)').animate({scrollTop: scoll_target},200);
    

    We will get back once we have found what is causing the issue.

    Best regards,
    Ismael

    #1349182

    Any update here? The jump back up seems to be gone now so I’m wondering what you guys did so I can apply it to the live site!

    #1349408

    Hi,

    We did not edit anything in the site actually. Are you sure that it is gone? Please make sure to toggle or temporarily disable the Enfold > Performance > File Compression settings after updating the site.

    Best regards,
    Ismael

    #1349445

    It’s a staging site, so I don’t have any compression turned on. I haven’t touched the site, though, I have been leaving it be while your team troubleshoots. Are you telling me no one on your team has made any changes? It does appear to be gone… I’ve testing on a few different browsers.

    #1349634

    Hi,

    Are you telling me no one on your team has made any changes?

    As far as I know, no one else in the team has made any changes to the site, so it might have been a temporary glitch or an issue with something else which is no longer present. Please let us know if the issue occurs again.

    Best regards,
    Ismael

    #1350340

    The issue is still occurring on the live site and I can’t figure out what’s different here.

    #1350429

    Hi,

    Thank you for your patience.

    We might have modified the enfold/config-templatebuilder/avia-shortcodes/toggles/toggles.js file previously. Please try to create a copy of the toggles.js file and override the one in the live site. Make sure to disable the file compression settings and purge the cache after updating the file.

    Best regards,
    Ismael

    #1350542

    Yes!! That is where the fix was hiding. Thank you, thank you, thank you.

    #1350693

    Hi,
    Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Accordion Anchor link doesn't load down near open toggle’ is closed to new replies.