Custom Code Disappearing
So whenever I paste custom HTML into the page builder on the ‘text’ tab and click done > update, the code shows on the live site but when I go back into the page builder / editor (in text mode) some of the code disappears? Any thoughts why that might be happening and how to stop it?
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
4Hi Kwsm,
Did you, at any time, open the visual tab? I ask as the second you do that TinyMCE/WordPress will very likely filter the code and remove the HTML. What is the HTML/JavaScript you’re adding? It’s possible it may have been filtered on save.
When you’re adding code to your editor, I would recommend using the Custom HTML widget instead of the SiteOrigin Editor widget.
Ok, thanks. I’ve disabled the TinyMCE/WordPress plugin and it is still happening. I go to the SiteOrigin Editor widget and click ‘text’ then paste in the HTML code below. Once I click save, the eidtor reverts back to ‘Visual’ instead of ‘Text’. When I open ‘Text’ again, the code is gone. Super annoying.
The two href links stay there but the
CLIENT LOGIN
Ok, thanks. I’ve disabled the TinyMCE/WordPress plugin and it is still happening. I go to the SiteOrigin Editor widget and click ‘text’ then paste in the HTML code below. Once I click save, the eidtor reverts back to ‘Visual’ instead of ‘Text’. When I open ‘Text’ again, the code is gone. Super annoying.
The two href links stay there but the
Here’s the code I’m pasting:
<div class="topbar-links"> <a href="http://dev.hkgcpa.com/contact-us/">CONTACT US</a> <a href="https://ive.hkgllp.com/dana-na/auth/url_default/welcome.cgi">CLIENT LOGIN</a></div> <div class="social-links"> <div class="kt-icon-facebook2 facebook"><a href="//www.facebook.com/HKGCPA"></a></div> <div class="kt-icon-linkedin2 linkedin"><a href="//www.linkedin.com/company/134699/"></a></div> </div>Hi Kwsm,
Thanks. I’ve logged this as a bug.
In the meantime, I would recommend switching to the Custom HTML widget to add your HTML – sorry about this!
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.