Conditional check for if post / page has Cornerstone content in template file

Hi there
Is it possible to run a check in the template files / views of my child theme to pro that checks if the current post / page has Cornerstone content?

I would like to create the right container for my content if Cornerstone is not being used, but don’t want to have a double container if it is being used.

Hey @arthurodb,

We don’t have code to check for that but if you are a developer or have hired a developer, you can ask him/her to check for the [cs_content] shortcode.

image

Hope that helps.

Thanks for the response. I will see if that will work for my use case.

@arthurodb,

You’re welcome. If you have any other concerns, feel free to reach us.

Thank you.

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