Skip Navigation

[Résolu] Blocks Gallery and lightbox Plugin

This support ticket is created Il y a 4 années et 1 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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+01:00)

Marqué : 

This topic contains 1 réponse, has 2 voix.

Last updated by Nigel Il y a 4 années et 1 mois.

Assisted by: Nigel.

Auteur
Publications
#1545481

Tell us what you are trying to do?
We have the problem that the image gallery creation with Toolset Blocks and the lightbox Plugin we use on Website create a doubled lightbox.
We use actual versions from Toolset Plugins and actual Divi Theme. Because users create a lot of content in posts in past with the classic Editor we need a lightbox plugin, to show there the linked mediafiles in a lightbox.
But these seem to create problems when we have a toolset created custom post type with usage of the blocks image gallery.
The lightbox opens twice then.
Any idea how to solve these?

hidden link

#1545681

Nigel
Supporter

Languages: Anglais (English ) Espagnol (Español )

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

If you are using Blocks on a particular custom post type, and not the others where it is required that the lightbox plugin be used, then I would say the solution would be to

1. check the settings for the lightbox plugin to see if it is possible to specify where it is used, or, failing that
2. add a code snippet to dequeue the assets (JS and CSS) added by the lightbox plugin when viewing single posts of the CPT where you use Toolset Blocks (which you can test using is_singular: https://developer.wordpress.org/reference/functions/is_singular/)

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.