Saved code in text editor being deleted

Why is cornerstone delete the 3rd party shortcode I add using wp text editor to hide a section based on a field’s value?
Here is the edit I am making in wp text editor:

[i4w_compare value1=’[i4w_db__1stCall]’ cmp=’==’ value2=‘yes’]
[cs_section][cs_row][cs_column][x_custom_headline][cs_element_text _id=“5” ][/cs_column][/cs_row][/cs_section]
[ELSE_compare]
[cs_section][cs_row][cs_column][x_custom_headline][cs_element_text _id=“10” ][/cs_column][/cs_row][/cs_section]
[/i4w_compare]

I’m trying to follow the answer here: https://theme.co/apex/forum/t/hide-whole-section-with-access-level-shortcode/1641

Hello @nwcooper2004,

Thanks for writing in!

Please be advised that you are not allowed to switched between editors. If you have created your page in Cornerstone, you should only edit it in Cornerstone. When you switch to the default WP Text editor, any of your changes will not be saved when you go back to Cornerstone or it may result that the cornerstone data will be corrupted and you will not be able to edit it back in Cornerstone.

If you which to hide or show sections, it is recommended that you created your page using the content band, container and column shortcodes so that your [i4w_compare value1='[i4w_db__1stCall]' cmp='==' value2='yes'] shortcode will work.

Please check this out:
http://demo.theme.co/integrity-1/shortcodes/content-band/
http://demo.theme.co/integrity-1/shortcodes/container/
http://demo.theme.co/integrity-1/shortcodes/columns/

Hope this helps.

I cannot seem to get it to work… I am doing the following:

In a page already built with cornerstone, I add a new section, add the content area element to the section, and in the content area element is this:

[container]
[i4w_compare value1=’[i4w_db__1stCall]’ cmp=’==’ value2=‘yes’]
111111111111111111111111111
[ELSE_compare]
22222222222222222222222
[/i4w_compare]
[/container]

Hi There,

Thanks for writing in again!
Can you please send your website details so that we can have a look.
Before that please check this.

  1. Ensure everything is up to date according to our version compatibility list at https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195. Please follow the best practices when updating your theme and plugins. See https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62 for more details.

  2. Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

  3. Remove custom CSS, Javascript and templates.

In case the issue persists, would you mind providing us with login credentials so we can take a closer look?. Please provide following information:
Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password
  • FTP credentials
    All the best!

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