Skip Navigation

[Closed] Gallery grid aligning images

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 1 year, 5 months ago.

Assisted by: Nigel.

Author
Posts
#2637583

I am creating a photo wall from multiple images. I received help from support using jquery. This was in an earlier ticket that I cannot re-open. Now that we have uploaded a lot of images to the gallery, we can see that the script is causing the gallery to duplicate the photos. Below is the script I got and it was all within my last support ticket. can you advise on how to not make this duplicate the photos? Here is a link where you can see the duplicates: hidden link

jQuery(document).ready(function( $ ) {
$( ".js-wpv-loop-wrapper > .wpv-block-loop-item" ).hide();
$( ".js-wpv-loop-wrapper > .wpv-block-loop-item:first" ).show();

$( ".js-wpv-loop-wrapper > .wpv-block-loop-item > .tb-gallery > .tb-gallery--grid .tb-gallery__cell" ).each(function( index ) {
if(index > 0) {
$( ".js-wpv-loop-wrapper > .wpv-block-loop-item:first > .tb-gallery > .tb-gallery--grid" ).append('<li class="tb-gallery__cell">'+$( this ).html()+'');
}
});
});

Here is the link to the support: https://toolset.com/forums/topic/creating-a-gallery-grid-from-multiple-posts-custom-images/

#2638173

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I looked at your page and I don't see any duplication of images, and the images from the different galleries appear to have been merged into the same gallery successfully.

Did you do some more work on this?

The topic ‘[Closed] Gallery grid aligning images’ is closed to new replies.