Component Shortcodes aren't working in raw content elements

Because Themeco’s conditional display options are limited with custom fields, I have resorted to using Component Shortcodes within Toolset’s Conditional Shortcodes to display certain components. The problem/bug I’m encountering is that Themeco’s Component Shortcodes don’t work within common Cornerstone elements like the Raw Content element or Headline element (I’m setting this as a div or span).

I can’t use the Components directly because I’m using conditional statements based on Toolset custom fields being empty or filled, and Cornerstone doesn’t offer that level of control.

I’m just thinking it has to be a bug when a Component Shortcode won’t display it’s content in Cornerstone, right? (or the front end). I know it’s a Cornerstone issue because I can drop the same shortcodes into Gutenberg and they display properly.

Any help you can offer is greatly appreciated! Here’s the page it’s not displaying:

Summary

https://streamsstaging.wpengine.com/team-member/john-e-thomas/

Hi @Jmot,

Thanks for reaching out.
I have checked the specific Component and found that the Gravity Form shortcode is added to it. But there is no form is present in the Gravity Form. I would suggest you add the form and use the specific form ID in the toolset.

Thanks

@tristup, there’s more than just a Gravity Form in there, there’s an entire Headline and block containing all of it. None of this is showing up.

Please try again—it’s still an issue.

Hello There,

The Raw Content element supports the Component Shortcode.

You can also check out the screenshot and the link in the secure note below.

We have checked your code and you are using this:

[wpv-conditional if="( $(wpcf-form-id) ne '' )"][cs_component id="LjlrLIwuSmPhm70vxK"][/wpv-conditional]

Please check your condition and be advised that [wpv-conditional] is not a native theme shortcode. This is not fully supported in the theme.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.