Skip Navigation

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

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

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 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.

This topic contains 4 replies, has 2 voices.

Last updated by Jeffrey 3 years ago.

Assigned support staff: Noman.

Author
Posts
#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: English (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

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: English (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 🙂