Cornerstone editor redirecting to a website

I placed an embeded code on a content block and now when I try to edit it it sends me to the website instead of allowing me to edit the code

Hello Jose,

Thanks for writing in! There could be a problem with the code you have inserted which may have caused the issue. Could you please send us the code you have embedded so that we can check it and test it in our local testing servers?

Best Regards.

I had to add spaces after the < so it would actually post

< div id=“icf_page”>
< script src="//iconfigurators.com/src/embed.cfm?ky=75DB*******">< /script>

Hey Jose,

Thank you for sharing the code with us. Try this, first add your HTML to Classic Raw Content element:

<div id="icf_page"></div>

For the script, add the following code in your child theme’s functions.php file:

function my_custom_script(){
	?>
		<script type="text/javascript" src="//iconfigurators.com/src/embed.cfm?ky=75DB*******"></script>
	<?php
}

add_action( 'wp_footer', 'my_custom_script', 10 );

Hope this helps!

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