Skip Navigation

[Resolved] Using a Divi Text Module to display a featured image

This support ticket is created 6 years, 1 month 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 5 replies, has 2 voices.

Last updated by Christian Cox 6 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1126909

I have question on creating a template for a custom post type using Divi Builder and Toolset that will maintain default theme functionality such as enabling Lightbox display (if using the Divi Image Module).

If all Divi Modules can be used, can I use the Image Module with it's lightbox function enabled for Toolset to display a featured image in a custom template created post?

I created and selected a custom field titled "Work Image" and I need these images to display with Divi's Image Module Lightbox enabled. Can this be done with Toolset?

#1127066

Hi, Toolset isn't set up to automatically trigger any 3rd-party lightbox module. However, if you know the HTML code required for a lightbox link, you can create that link in your own custom code using Types shortcodes. For example, if a lightbox is triggered by a link with a custom class "lightbox", then you could do something like this:

<a href="#somelink" class="lightbox">[types field="your-image-slug" size="thumbnail"][/types]</a>

I'm not a Divi expert so I'm not entirely sure how their lightbox links work, so this is just an example.

#1127086

Hi - Thank you for this information. While in "Edit with Divi Builder mode", I proceeded to insert a Divi Image Module followed by inserting the Toolset shortcode for a field I previous created titled "Work Image". If this path is correct, I enabled the native Divi modules Lightbox function which means that when the post is published (in this particular case on the Home Page) the Work Image displayed on the front-end should have the Divi Lightbox pop-up available by clicking the image.

In the Divi Image Module, is it correct to add the "Work Image" Toolset shortcode in the modules Image URL and Image Link URL fields to display a Work Image post on the front-end?

I was only able to locate instructions for adding the shortcode to text and button modules in the Toolset articles.

#1127097

In the Divi Image Module, is it correct to add the "Work Image" Toolset shortcode in the modules Image URL and Image Link URL fields to display a Work Image post on the front-end?
Not sure, that's a good question for Divi support. I'm not qualified to know if Divi's module configurations accept 3rd-party shortcodes or only simple text, and I think that's something their support team could tell you.

#1127104

I'm in the process of attempting to set it up now. Would it be OK to keep this ticket open so that I can post the results of the work-flow and any Divi support input if obtained?

#1127115

Sure that's fine, and I will mark this ticket as pending an update from you. There is no need to reply right now. The ticket will remain open for 30 days.