Archived topic
Embed Script form
5 replies · Started by James Gallon on February 16, 2018
Hello, good afternoon, We are having trouble inserting the CRM Bitrix24 form to our pages throughout that the script give to us. This start happening since the GP template installation. Would somebody there help us find solution for it. Thanks.
Hi there,
Where is the script being added to?
What's the exact issue? The form not displaying?
Hello there, good morning. The real issue is that We added the script at our page section where I want to show it, but it doesn't working. I meant doesn't visualize the form. Thanks a lot for your help.
You added it within the content of your page?
I believe the WordPress editor strips script tags. Can you share the code with me?
This is the script that we must insert at our page and it's not working:
<script id="bx24_form_inline" data-skip-moving="true">
(function(w,d,u,b){w['Bitrix24FormObject']=b;w[b] = w[b] || function(){arguments[0].ref=u;
(w[b].forms=w[b].forms||[]).push(arguments[0])};
if(w[b]['forms']) return;
var s=d.createElement('script');s.async=1;s.src=u+'?'+(1*new Date());
var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
})(window,document,'https://encargousa.bitrix24.es/bitrix/js/crm/form_loader.js','b24form');
b24form({"id":"10","lang":"la","sec":"x4xyta","type":"inline"});
</script>
WordPress won't allow you to add scripts directly into your content.
Instead, try using a plugin like this: https://wordpress.org/plugins/scripts-n-styles/