Problem:
How to have images open in a lightbox when clicked?
Solution:
Toolset doesn't include a lightbox itself, but it should be possible to make it work with the lightbox library of your choice.
Normally it is just a question of ensuring the markup for the image matches the requirements of the lightbox library.
It will normally need the image tag to be wrapped in a link where the href is the image URL, something like
<a href="[types field='asset' output='raw'][/types]">[types field='asset' title='%%TITLE%%' alt='%%ALT%%' size='thumbnail' resize='proportional'][/types]</a>
You will probably need to add some custom classes to trigger the lightbox functionality.
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 5 years, 6 months ago.
Assisted by: Nigel.