Saltar navegación

[Resuelto] Add a Lightbox on Product Image

This support ticket is created 4 years, 2 months ago. 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Zona horaria del colaborador: America/Jamaica (GMT-05:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Shane 4 years, 2 months ago.

Asistido por: Shane.

Autor
Mensajes
#2325183

Website URL: enlace oculto

We are developing a a product database and each product has just a single product image.

If a product image is not yet available it loads a generic image.

What we would like, is for the product image thumbnail, to open a large image when clicked via a lightbox function.

We have uploaded the Plugin jQuery Lightbox and added the following code to the product content template:

<!-- wp:html -->
[wpv-conditional if="( $(profile) ne '' )"]enlace oculto[/wpv-conditional][wpv-conditional if="( $(profile) eq '' )"]<img src="enlace oculto" alt="Sealco Default Profiler Image">[/wpv-conditional]
<!-- /wp:html -->

However the lightbox function is not working.

The images display correctly, but the image is not a link.

Any ideas on what we have missed as the code looks to be correct and certainly the images are displaying.

Thank you for your help.

#2325251

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Adrian,

Given that you're using the lightbox plugin to display the lightboxes then there isn't much we can do here since their plugin should automatically pick up the images and display using the lightbox.

My recommendation is that you get in touch with their support and ask them if there is anything missing from your code that needs to be added for the lightbox to be triggered.

Thanks,
Shane