Skip Navigation

[Resolved] Gallery block is really buggy

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 5 replies, has 2 voices.

Last updated by Nigel 9 months, 3 weeks ago.

Assisted by: Nigel.

Author
Posts
#2685667

I am trying to: show a image gallery based on a custom field. Gallery shows on front end however, when you click to view in lightbox is where the problems are.

Post type: Photo Galleries
Custom field: Photo Gallery
Content Template: Template for Photo Gallery.

Link to a page where the issue can be seen: hidden link

I expected to see: when viewing picture in lightbox, a gallery with one close button. Also for the image to stay in the same place when clicking to view next. Not pushing the image box down each time you click the arrow.

Instead, I got: when viewing picture in lightbox, it shows numerous close buttons and each time you view a new picture it pushes the image down further on the page.

Super weird.

#2685724

Nigel
Supporter

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

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

Hi there

I just visited your link and the gallery and lightbox work normally, I can't see the issue you describe.

Could you clear your browser cache and check again? (Or try visiting the page in a different browser.)

#2685760
Screen Shot 2024-02-29 at 7.00.05 AM.png

I cleared cache, same issue. Looked in incognito, same issue. Looked on a different computer that has never visited the site before, same issue. Looked on a different browser, same issue. Same issue on Safari and Firefox.

#2685780

Nigel
Supporter

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

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

It's still working correctly at this end, this link: hidden link

So I asked a couple of colleagues to check, the first of whom for which it also works as expected, while for the second it displays the same weirdness you describe. There aren't any errors in the console to account for the behaviour.

Can I suggest you try disabling any server-level caching you have operative, and test again.

If that doesn't help, try disabling any optimisation plugins you have active, and test again.

Let us know what you find.

#2685869

It was autoptmize. Sorry about that, never had it mess with anything before.

I have selected masonry layout however it looks just like grid. Would that be because the images are all the same size?

#2685936

Nigel
Supporter

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

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

That sounds right. The masonry layout is for when you have content that are sized differently, to avoid the gaps that would appear with a conventional grid layout.