site builder popup issue
Hi, we are experiencing an issue with the popup on the site builder "Municode". We tried embedding it on this page, but no luck.
We used to use a popup widget that was built in-house that worked fine with that site builder, but the Brizy code doesn't seem to display.
The Municode tech support said our old one worked because it was done in a block structure. Is there any way we can convert our Brizy code to a block structure, or is there anything else we can do to get it to display?
Any help with this would be greatly appreciated.
I'll post an example of the popup code we used before Brzy, that worked for them, as well as the Brizy code we are trying to get to work below.
Our old in-house code before Brizy:
<script src="https://textmygov.com/wp-content/widget/dist/app.js"></script>
<script>
textMyGovWidget({
'clientId': 'Woodcreek',
'backgroundColor': '#333333',
});
</script>
Brizy code we are trying to use:
<script>!function(p,n,o){if(!(o=n.getElementById("brz-external-popup")))return(o=n.createElement("script")).async=1,o.id="brz-external-popup",o.src="https://s3.amazonaws.com/brizy.cloud/popups/popup.js",o.onload=e,void n.body.appendChild(o);function e(n,e){p.brzExternalPopup?p.brzExternalPopup("https://coconut6437980.brizy.site"):(n=o.onload,o.onload=function(){n(),p.brzExternalPopup("https://coconut6437980.brizy.site")})}e()}(window,document);</script>
-
Hi,
how did you add this script to the page? Do they have any option to embed the external code? I don't see the popup code in the page source code. I also tested it on my site and it works well: https://jmp.sh/pfcLPmK
0 -
Yes, I spoke with Municode's support team directly. They initially added it to the footer and it wouldn't display, so they removed the code because they didn't want it on while it was being troubleshot.
They just added it to a test page. You can view that here.
They said our old code worked before Brizy because it was in a "block structure" where this code is not. I'm not sure what that details or why that site builder is having issues with it.
Is there anything else we can try with it?
0 -
Hi,
I'm afraid I can't help you too much. Looks like the problem is from Municode. I noticed something interesting on your site. It seems that after adding the code on the page, something erases the quotation marks from the brizy script and a syntax error is received in the frontend: https://jmp.sh/rJp6Pbj Due to the lack of this, the link is treated as a comment. This is what the correct code added looks like: https://jmp.sh/vYetnGf
0 -
We were able to fix the quotation mark issue, however the Brizy popup still isn't displaying. Is there anything else that maybe causing the issue that we can bring to Municodes's attention?
0 -
I have no other idea at the moment why this would happen. You need to inspect this. It is already clear that there is something on the Municode part because it somehow formats the added script. If you get such a script in the frontend, it will work: https://jumpshare.com/v/IlcAjUL8ODT9mGTq0wZ4 at the moment it looks like that: https://jmp.sh/1gnSUrU and it looks like the code was edited because async is not in the original source code.
0
Please sign in to leave a comment.
Comments
5 comments