Cornerstone cannot save additional script or link

Hi,

I cannot 100% save a page when I put a link or script from third party.
If I take out the link or the script, Cornerstone able to save 100%.

Theme and plugin already updated to the last update but still no change.
Already clear caches too.

Can someone help?

Thanks,
Erik

Hey,

Thank you for writing in!

Ensure that your PHP memory limit is increased checking this article: https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/ and if it didn`t work, provide to us your WP credentials and the website link in a secure note, please.

Hi,

I did what you said, but still have the same problem.
I’ve made you as one of the administrator.

Thank you.

Hi there,

Would you mind providing the direct link to the page where you are trying to add the custom script on to?

For the meantime, please try adding the script in a Raw Content element and see if it fixes the issue.

Hope this helps.

Hi,

Apparently it works for a while, then it didn’t work again.
The Raw Content also didn’t work.

Currently I have issue with the following page:

Hi again,

This might be happening due to the script you’re adding, if you need to execute the script then either use Cornerstone’s JS section to add the script or in Appearance > Customize > Custom > Edit Global Javascript but please note that don’t write <script></script> tags in there as they already use it

Hope this helps!

Hi,

This is the script, I didn’t find any difficulties previously. Sorry I’m not a tech person, so I don’t really understand how exactly the function of Cornerstone’s JS section.

It usually came out by itself even when I put it on the element text.

Thank you.

Hi again,

Just open this URL http://www.emailmeform.com/builder/forms/jsform/5ra6MP8eS2wyIk in your browser then copy and paste the code in your Cornerstone’s JS section.

Hope this helps!

Hi,

Apparently the page still cannot be saved.

I wonder why I can save it in some without hassle and some I still cannot do.
I never need to put in difficult codings, simply just copy and paste the short script and it works. I use X not only in one website but several and has no problem with others.

Thanks.

Hi again,

Let’s try another way, remove the script from your Cornerstone’s JS section and add the following code in your Child Theme’s functions.php file:

add_action('wp_footer','form_script');
function form_script() { 
?>
	<script src="http://www.emailmeform.com/builder/forms/jsform/5ra6MP8eS2wyIk" type="text/javascript"></script>
<?php 
}

Let us know how this goes!

Hi,

It works! But not where I want it to be.
It came out at footer, which the script says so.
How can I put it on the specific section on the page?
Thanks.

Hi again,

You can try adding your script in Raw Content element instead of Text Element and see if this works. I beleive you were not closing the script tag that’s why it was causing the issue. Copy and paste the following code in your Raw Content element.

<script src="http://www.emailmeform.com/builder/forms/jsform/5ra6MP8eS2wyIk" type="text/javascript"></script>

Let us know how this goes!

Hi,

Just wanna update this one, I used iFrame and it works so far.

But now I have another question, yesterday the link was okay. Today it doesn’t.
It doesn’t show as it should be. It’s okay for one website, but not for the other website that I’m currently working.

It should be like this
Instead the design looks plain like this.

I don’t know whether the fault is in my browser or not, since I’ve checked the other websites that I manage, it looks fine. It is also looks fine on another computer.

Any idea why? Thanks.

Hi there,

Please adjust the height set to the iFrame at least around 245px.

Hope this helps.