embed script to page breaks when published
-
Okay hope someone can help me here I run a radio station that has a chatroom on a page yesterday I update WP to 4.2.2 and on the chat page gallery images had enlarged to full size instead of thumbnails. So I went into edit and reset them to thumbnails simply fixed.
But on publishing and saving the changes the embedded script for the chat room broke parts of the script had jumbled up. I repasted the script done a preview of the page and all back working but on Publish the script breaks again.
my site is Wicked Spins Radio
http://wickedspinsradio.org/wsr2012/chat-and-listen/Below is what happens
————————
This is the original script before publishing the page
——————————————————[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
<script id="cid0020000114917944283" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 652px;height: 488px;">{"handle":"wickedspins","arch":"js","styles": {"a":"990000","b":100,"c":"ffffff","d":"FFFFFF","e":"000000","g":"ffffff","k":"cc0000","l":"cc0000","m":"cc0000","n":"FFFFFF","p":"11.07","q":"cc0000","r":100,"usricon":1.09,"cnrs":"0.35","fwtickm":1}}</script> ---------------------------------------------------- This is what happens to the scrip after publishing the -- async="" data-cfasync="false">// <![CDATA[ -- appears after --src="//st.chatango.com/js/gz/emb.js"-- and is jumbled up which prevents the chatroom from displaying. ------------------------------------------------------- <script id="cid0020000114917944283" style="width: 652px; height: 488px;" src="//st.chatango.com/js/gz/emb.js" async="" data-cfasync="false">// <![CDATA[ {"handle":"wickedspins","arch":"js","styles": {"a":"990000","b":100,"c":"ffffff","d":"FFFFFF","e":"000000","g":"ffffff","k":"cc0000","l":"cc0000","m":"cc0000","n":"FFFFFF","p":"11.07","q":"cc0000","r":100,"usricon":1.09,"cnrs":"0.35","fwtickm":1}} // ]]></script> -----------------I’m not script or code minded so I don’t know what is going wrong here or why it’s change when I Publish and save the page.
Is this a 4.2.2 bug and if so how can i fix it ? As i’m currently having to use a temp chatroom
The topic ‘embed script to page breaks when published’ is closed to new replies.