-
AuthorPosts
-
March 16, 2022 at 1:28 am #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??
March 18, 2022 at 4:45 pm #1345114Hey 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,
YigitMarch 18, 2022 at 10:41 pm #1345159Updated link below
April 4, 2022 at 7:53 am #1347094Hi,
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,
IsmaelApril 5, 2022 at 12:28 am #1347197Even with Enfold updated and all the plugins turned off, it doesn’t anchor.
April 5, 2022 at 10:59 am #1347239Hi,
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,
IsmaelApril 6, 2022 at 2:10 am #1347338Sure, here you go!
April 6, 2022 at 12:12 pm #1347402Hi,
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,
IsmaelApril 22, 2022 at 10:28 pm #1349182Any 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!
April 25, 2022 at 1:58 pm #1349408Hi,
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,
IsmaelApril 25, 2022 at 9:03 pm #1349445It’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.
April 27, 2022 at 8:44 am #1349634Hi,
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,
IsmaelMay 3, 2022 at 3:45 pm #1350340The issue is still occurring on the live site and I can’t figure out what’s different here.
May 4, 2022 at 8:47 am #1350429Hi,
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,
IsmaelMay 5, 2022 at 3:13 am #1350542Yes!! That is where the fix was hiding. Thank you, thank you, thank you.
May 5, 2022 at 11:54 pm #1350693Hi,
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 -
AuthorPosts
- The topic ‘Accordion Anchor link doesn't load down near open toggle’ is closed to new replies.