Skip Navigation

[Resolved] Avada Global Containers not working with Toolset Conditional Statements

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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Waqar 9 months ago.

Assisted by: Waqar.

Author
Posts
#2685030

I am trying to:
Use toolset conditional statements within an Avada "Global" container

Link to a page where the issue can be seen:
hidden link

I expected to see:
The conditional statements to work regardless of being in the global container.

Instead, I got:

Please see the attached screen grab i did to see the problem, this explains what is happening:
hidden link

#2685187

Hi,

Thank you for contacting us and I'd be happy to assist.

Different page builders and editors use different approaches for setting the current page/post scope. This is why at times, nested or complex shortcodes are not rendered properly.

A workaround in such cases, is it to place these conditional statements or other Toolset shortcodes inside a Toolset content template and then load that template, inside the other page builder environments:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body


[wpv-post-body view_template="template name" suppress_filters="true"]

regards,
Waqar

#2685369

Is there no easier way to do it? Seems like there is a much easier fix. I don't use content templates, strictly "views"

#2685547

I'm afraid, I can't think of any other alternative.

In this suggested approach, you're not switching to content templates, as that template will not be assigned to any post or page.

You'll use the template to render the conditional statement shortcode's output and then show it in Avada's global container.