Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1266335

    Hi there, is it possible to make the horizontal gallery loop instead of stop at the last slide? see private area for link!

    #1267563

    Hey 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,
    Victoria

    #1267566

    Hi 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?

    #1268710

    Hi,
    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.