Skip Navigation

[Resolved] How to add a lightbox effect to image fields

This thread is resolved. Here is a description of the problem and solution.

Problem:
When outputting a Types image field, how can a lightbox effect be added?

Solution:
There is no such option when inserting a shortcode to output an image field, but the new release of Toolset Blocks includes an image field block that *does* include such an option.

Relevant Documentation:
https://toolset.com/documentation/user-guides/how-toolset-plugins-work-with-gutenberg/

This support ticket is created 5 years, 10 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
- 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 4 replies, has 2 voices.

Last updated by elviraR 5 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1226787

Tell us what you are trying to do? Я хочу сделать галерею изображений в шаблоне вывода одиночной записи. Такого поля нет, но есть поле изображение. 1. Как подключить к полю image эффект lightbox.? 2. Поле галерея есть в плагине ACF, если я добавлю поле галерея ACF , я смогу потом его добавить в шаблон записи который делаю с помощью toolset types, а главное с помощью toolset types я буду делать форму, чтобы пользователи могли добавлять свои объявления, я смогу в эту форму добавить поле галерея из ACF?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1226969

Nigel
Supporter

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

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

Sorry, we are only able to offer support in English, Spanish, or German.

Could you re-post your question in one of those languages?

#1227103

field image - how to connect lightbox effect?

#1227120

Nigel
Supporter

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

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

Currently Toolset doesn't have a lightbox effect available when displaying image fields.

You can add such functionality yourself using a 3rd party lightbox library.

The easiest way would be using a plugin such as Simply Lightbox: https://wordpress.org/plugins/simple-lightbox/

In that case you would need to output your image fields as links to the image, which the plugin will convert to a lightbox.

However, if you use the new blocks editor (Gutenberg) then you will be pleased to know that Toolset will this week launch a new Toolset Blocks add-on that includes an image block for image fields where a lightbox is one of the output options available.

I'm not sure what day this will be released, but it should be this week.

#1227136

This is great news!
Thank you!