Passer la navigation

[Closed] Gallery grid aligning images

This support ticket is created Il y a 2 years, 9 months. There's a good chance that you are reading advice that it now obsolete.

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 -

Fuseau horaire du supporter : Europe/London (GMT+01:00)

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Nigel Il y a 2 years, 9 months.

Assisté par: Nigel.

Auteur
Publications
#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: lien caché

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

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01: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.