I have a Divi builder template that is assigned to a CPT that displays a number of custom fields.
I am trying to create a conditional shortcode that will hide a title and field if they have no content. I am using the code below, without success. I have added this to a Divi text module and a code module, and swapped out the "[ ]" bracket for "{!{" curly brackets but to no avail. I am basing the code on a previous query that was added here: https://toolset.com/forums/topic/how-to-use-conditions-when-creating-single-templates-in-elementor/
It simply displays the titles and the toolset shortcode beneath it. You can see an example of a page here, though I have removed the shortcodes for now. I need to conditionally remove the Alternative Visits and Further Afield sections.
Hello. Thank you for contacting the Toolset support.
Basically - code module does not support the conditional statements. Normally - you need to add the conditional statements to text module.
Can you please share admin access details so I can check further:
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.