Skip Navigation

[Resolved] The conditional output how can it be implemented in DIVI?

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

Problem:
How to display conditional output with Divi module

Solution:
You can use [wpv-conditional] shortcode inside the Divi module to display the conditional output. You can not wrap Divi module using divi builder.

Relevant Documentation:
=> https://toolset.com/documentation/recommended-themes/toolset-divi-integration/displaying-fields-inside-any-divi-module/
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

This support ticket is created 7 years 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 3 voices.

Last updated by Edward Barker 7 years ago.

Assisted by: Minesh.

Author
Posts
#592641

The conditional output how can it be implemented in a content template designed with DIVI?

Thanks for your help.

Best regards,
Francisco R.

#592694

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Could you please share few screenshots what you would like to display with conditional output?

However, Doc is here:
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

#592741
2017-11-24_9-55-19.jpg

But, I'm doing it the way you say it, so I do not understand why that message is shown.
I have already read that document, but what I want is to filter conditionally any of the DIVI modules within a page or post.
Look at the screenshot.
How can you filter these modules?

#592871

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - you can use [wpv-conditional] shortcode inside the module you can not wrap the DIVI module.

More info:
https://toolset.com/documentation/recommended-themes/toolset-divi-integration/displaying-fields-inside-any-divi-module/

#592873

But if it can not wrap the DIVI module, it greatly limits its power and functionality.

#592877

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - you may say its limitation of Toolset.

#592880

Ok. Thanks Minesh.

#1163944

I know that this is an old thread but I thought I'd add a work around for this problem.

1. finish off your layout including all the modules that require conditional output and then go back to the Toolset Content Template editor at the top of the page.
2. Click stop using Divi.
3. From there the raw code for your template should be viewable.
4. Find the section you want hidden and add in the conditional output as required before and after the module.
5. Re-activate Divi and the template will display as before but with the conditional outputs now in place.

Hope this helps someone.