Skip Navigation

[Résolu] How to display the images of post body in a or modal popup with switcher

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
How to display the images of post body into a popup when users click the images, that includes a button to go to next image and a button for closing the popup box?

Solution:
Please note that Toolset does not have any Lightbox popup or modal popup feature. The below suggestions are regarding general WP and Lightbox popup feature.

You can use this plugin which gives more control for such cases, please check in Lightbox settings to enable lightbox option and other options for post body images:
https://wordpress.org/plugins/wp-lightbox-2/

More useful resources for this:
- https://wordpress.org/plugins/simple-lightbox/
- http://askwpgirl.com/wordpress-image-gallery-lightbox-plugin/

This is the format I used for image in post body:

<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
This support ticket is created Il y a 6 années et 8 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 réponses, has 2 voix.

Last updated by Jeffrey Il y a 6 années et 8 mois.

Assisted by: Noman.

Auteur
Publications
#551144

I am trying to display the images of post body into a modal popup when users click the images, that might include a switcher to transit to next and a switcher for closing the modal box, if possible, Can I limit the largest size too? I am using Toolset starter. Thank yo so much

#551288

Noman
Supporter

Languages: Anglais (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Jeffrey,

Thank you for contacting Toolset support. Please note that Toolset does not have any Lightbox popup or modal popup feature. The below suggestions are regarding general WP and Lightbox popup feature.

You can use this plugin which gives more control for such cases, please check in Lightbox settings to enable lightbox option and other options for post body images:
https://wordpress.org/plugins/wp-lightbox-2/

More useful resources for this:
- https://wordpress.org/plugins/simple-lightbox/
- hidden link

Thank you

#553219
QQ图片20170726125604.png
QQ图片20170726125731.png

Hi Noman, thank you so much for the response. I have tried to download and install the plugin you mentioned, but it still was not working, the trouble-shoot article only shows me to deactivating third party plugins or change default theme. but whatever I did, it still was not working. did anybody usedit for Toolset theme? I want to use it for built-in wordpress posts and customized images of the customized posts. I know I may need to ask plugin author, but I just want to know whether it was used for toolset theme and Toolset system in our community, does it work for custom post type or custom fields? Thank you so much!

#553418

Noman
Supporter

Languages: Anglais (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Jeffrey,

I have used the following plugin with Toolset Starter theme and Lightbox is working as expected on the images of post body.
https://wordpress.org/plugins/wp-lightbox-2/

This is the format I am using for image in post body:

<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>

As you know we do not debug custom development, features outside Toolset & third party plugin related issues, as such it is out of our support as per support policy: https://toolset.com/toolset-support-policy/

Thank you

#553685

Thank you so much for the help, It is working fine now 🙂

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