Skip Navigation

[Resolved] Image link to media file

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

Problem:

The issue here is that the user wanted to open their image on the frontend in a lightbox when clicked on.

Solution:

This can be done using the toolset Image block. You can find the lightbox option under the Link Settings for the Image block.

This support ticket is created 4 years, 3 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 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Stina 4 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1760445

Tell us what you are trying to do?
I want to link images to their media files so they will show up in the lightbox. I've found several examples here that I have followed. The problem is that I get the right url, but with "[/types]" at the end on the front side, and then it doesn't work.

Is there any documentation that you are following?
https://toolset.com/forums/topic/how-to-insert-a-dynamic-featured-image-with-a-link-to-the-media-file/#post-1191452

What is the link to your site?
hidden link

I've tried several ways of coding it, here is the last one:

[types field="360-bild-klot" title="%%TITLE%%" alt="%%ALT%%" size="large" resize="proportional"][/types]

Or is there a way to do it in the block editor?

Grateful for any help,
Stina

#1760513

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-08-28 at 10.37.23 AM.png

Hi Stina,

Thank you for getting in touch.

This is definitely possible in the block editor using the Image block. You have the option to link the image to a lightbox. See my screenshot for the image block setting.

As you can see from the options.

Please let me know if this helps.
Thanks,
Shane

#1761123

I had an old solution without the link option. Now everything works! Thank you!