iFrame not working on Brizy for WordPress but in Brizy Cloud
Hi, this code shows a blank element an error in code inspection on Brizy for WordPress but works in Brizy Cloud and on WordPress without Brizy and works also on codepen.io. How can we resolve this problem?
Thank you for your support
<script>window.addEventListener("message",function(a){var e=a.data["od-widget-id"],i=a.data["od-widget-height"],j=a.data["od-widget-ios"];if(e){var c=document.getElementById("od-widget-"+e);i&&(c.style.height=i+"px"),!0===j&&(c.style.width="100px",c.style["min-width"]="100%",c.scrolling="no");}}),window.addEventListener("load",function(d){for(var c=document.querySelectorAll("iframe.od-widget"),b=0;b<c.length;b++){var a=c[b];a.dataset&&a.dataset.src&&(a.src=a.dataset.src)}})</script>
<iframe class="od-widget" id="od-widget-e1b30fea229f37109cc13eb9980d6c496b86c1dbc18205cecf5ac74da1650905" src="about:blank" data-src="https://www.onedoc.ch/de/widget/e1b30fea229f37109cc13eb9980d6c496b86c1dbc18205cecf5ac74da1650905" frameborder="0" style="width:100%;max-width:1024px;height:400px"></iframe>
-
Hi Reto,
I have added the above script into the page header using a plugin and pasted the iframe code into a Brizy page. Please see my test page: https://kctest.online/iframe
0 -
Thank you - this is a great idea. It works on my website.
Kind regards, Reto0
Please sign in to leave a comment.
Comments
2 comments