-
AuthorPosts
-
December 10, 2020 at 5:41 pm #1266335
Hi there, is it possible to make the horizontal gallery loop instead of stop at the last slide? see private area for link!
December 15, 2020 at 10:02 pm #1267563Hey bobfurgo,
Please have a look at the following thread:
https://kriesi.at/support/topic/horizontal-gallery-loop-2/If you need further assistance please let us know.
Best regards,
VictoriaDecember 15, 2020 at 10:06 pm #1267566Hi there, thanks I should have mentioned this thread. I wasn’t able to make it work, do you think you could assist me with this further?
December 20, 2020 at 4:42 am #1268710Hi,
Sorry for the very late reply, for v4.7.6.4, the correct edit should be in\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\gallery_horizontal\gallery_horizontal.js
lines 139-155 you would replace with the code from the other thread:prev.on('click', function(e) { if(currentIndex === false) currentIndex = 1; var index = currentIndex - 1; if(index < 0) index = slide_content.length - 1; change_active(index); }); next.on('click', function(e) { if(currentIndex === false) currentIndex = -1; var index = currentIndex + 1; if(index > slide_content.length - 1) index = slide_content.length - 1; if(currentIndex + 1 == slide_content.length) index = 0; change_active(index); });
After making this change please clear the site and browser cache, if you are using the Enfold Theme Options > Performance > JS & CSS file merging and compression you will need to clear this also by disabling and then go to the bottom of the page and enable the Enfold Theme Options > Performance > Delete old CSS and JS files option and then save your theme settings, then clear the site and browser cache and check. JS can be hard to clear, so please try a few times.
In the Private Content area you will find a link to the file I edited and tested on my localhost, you can use this if you wish to ensure the edit is correct. Please save a fallback copy of your current file.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.