this is the code i got to work on my wordpress cus...
# đź’»developers
b
this is the code i got to work on my wordpress custom HTML block preview but it will not render when i view my site. maybe because of security reasons? Botpress Chatbot in a <div> var iframe = document.getElementById("botpressIframe"); var iframeDoc = iframe.contentWindow.document; var injectScript = iframeDoc.createElement("script"); injectScript.src = "https://cdn.botpress.cloud/webchat/v0/inject.js"; iframeDoc.head.appendChild(injectScript); injectScript.onload = function () { var configScript = iframeDoc.createElement("script"); configScript.src = "https://mediafiles.botpress.cloud/f5540873-8e70-45aa-aa82-1ea15263fd60/webchat/config.js"; configScript.defer = true; iframeDoc.body.appendChild(configScript); };
3 Views