x

Embed Code showing in editor, but not on published website

I am struggling with an issue for quite some days. I have a special script embedded in the editor for one of our clients and it loads the script smoothly in the editor preview. However, once I hit "publish" the script is not visibible in the front-end under newsroom.eintracht.de

Taking under consideration that the script is using a SSL certificate, I also upgraded the weebly website to SSL. Unfortunately with no result in terms of front-end. 

Code: 

<!-- Use this section to define current stage START:-->
<script type="application/javascript">
    storyshakerStage = 'frankfurt';
</script>
<!-- END -->

<script src="https://www.newsroom.co/eintracht/storyshaker.js" id="_STZScript" type="text/javascript" charset="UTF-8"></script>

Thanks a lot for your help,

Benjamin

3,344 Views
Message 1 of 13
Report
12 REPLIES 12
Square

It looks like the script is trying to load a jQuery library that doesn't exist. We include a library of our own, but it's not a version compatible with the script.

image

3,337 Views
Message 7 of 13
Report

I'm experiencing a similar issue with two Lodgify widgets displaying in the editor (see photo attached below), but not when publishing to the "Rates" page of my Weebly site: www.snowgrasslodge.com.

image

Here's the JS code snippet for the main reservation widget:

<script type="text/javascript" async="async" class="embed-ldgfy-script-loader embed-ldgfy-book-script-loader" src="//static.lodgify.com/themes/shared/v3/assets/latest/embed-ldgfy-book.min.js" data-website-id="268360" data-website-slug="snowgrass-lodge" data-domain="lodgify.com" data-protocol="https" data-property-id="265925" data-culture="en" data-culture-iso="en-US" data-currency="USD" data-token="kOKjWJAfkCynKDBeWo7lx5e6dEBpU4MDytPIwFqXoDxpgmK3ibmrju5udXVUrEOn"></script>

Curiously, the "Book Now" button widget in the upper right only publishes to the Blog page of my site, but none of the other pages. Here's the snippet for that widget:

<script type="text/javascript" async="async" class="embed-ldgfy-script-loader embed-ldgfy-button-script-loader" src="//static.lodgify.com/themes/shared/v3/assets/latest/embed-ldgfy-button.min.js" data-website-id="268360" data-website-slug="snowgrass-lodge" data-domain="lodgify.com" data-property-id="265925" data-culture="en" data-text="Book Now" data-target="_blank" data-bg-color="#ffa617" data-text-color="#fff" data-class-name="" data-currency="USD"></script>

Thanks for any help. I'm not sure what else to try at this point...

Hernan

3,202 Views
Message 7 of 13
Report
Square

Thanks for posting, @hernans. I see a JS error in the browser console when I check that page on the live site:

3,200 Views
Message 7 of 13
Report

I'm trying to embed a virtual appointment booking system into my website using Microsoft Bookings. 

I have pasted in the pages HTML code and It shows perfectly in the editor but once I publish it and use the live version it is just blank. 

I may be making a simple mistake, but I'm really not sure what to do.

Any tips would be much appreciated!

2,753 Views
Message 7 of 13
Report
Square

Thanks for your post, @Sean02. Can you provide a link to the page of your website that has the code on it?

2,752 Views
Message 7 of 13
Report
Square

I would contact the source of your embed code and ask them about that; there might be a different way you need to include them on your page. We render embed code differently in the editor to avoid security issues, and it probably circumvents whatever is causing the error on your live site.

3,200 Views
Message 14 of 13
Report

Hi There,

My embedded code also goes missing

https://www.deewhyschoolofyoga.com.au/class.html

<div id='container1' class='ksiframe-container' data-module='schedule' data-options='hide_branch=true&clean=true' data-target='deewhyshcoolofyoga.karmasoftonline.com'></div>
<script src="https://deewhyshcoolofyoga.karmasoftonline.com/assets/iframeapi.js"></script>

2,924 Views
Message 14 of 13
Report
Square

I see a javascript error on your published website, @seatonmckeon. I would contact the provider of your embed code to see if they have any ideas.

2,923 Views
Message 14 of 13
Report

Wondering if you wouldn't mind helping me as well. I have 5 buttons, the first works fine and the other 4 don't, despite it being nearly a direct copy paste and working in preview. Only one of the buttons works when actually published. Webpage can be found here, about halfway down. Any help would greatly be appreciated.

Here's the code that is working: 

<!DOCTYPE html>
<html>
<body>
<center>
<div style="display:inline-block;border:1px solid rgb(240, 198, 64);border-radius:10px;padding:11px;background:linear-gradient(to top,rgb(240, 198, 64),rgb(249, 217, 115))"><style>
@import url('https://fonts.googleapis.com/css2?family=Quattrocento+Sans&display=swap');
</style><div>
<p><span style="color: #08365f; font-size: 16px"><p id="demo">Reveal</sub></p></div>      

<script>
document.getElementById("demo").onclick = function() {myFunction()};

function myFunction() {
  document.getElementById("demo").innerHTML = "boron trifluoride";
}
</script>
</p>
</body>
</html>

Here's an example of the code that will show in preview, but will not publish. 

<!DOCTYPE html>
<html>
<body>
<center>
<div style="display:inline-block;border:1px solid rgb(240, 198, 64);border-radius:10px;padding:11px;background:linear-gradient(to top,rgb(240, 198, 64),rgb(249, 217, 115))"><style>
@import url('https://fonts.googleapis.com/css2?family=Quattrocento+Sans&display=swap');
</style><div>
<p><span style="color: #08365f; font-size: 16px"><p id="demo">Reveal</sub></p></div>      

<script>
document.getElementById("demo").onclick = function() {myFunction()};

function myFunction() {
  document.getElementById("demo").innerHTML = "sulfur hexafluoride";
}
</script>
</p>
</body>
</html>

2,920 Views
Message 14 of 13
Report

I think it might be because each one has an element with the same ID ("demo"). ID attributes need to be unique. Try changing all instances of "demo" in each code example to something unique, like "demo1", "demo2", etc.

1,956 Views
Message 14 of 13
Report

Hello!

When I entered the code below in my footer -- a badge from Varsity Tutors to promote my services -- it showed fine inside the editor. Although on the published site, it looks like an empty grey box with the "broken link" symbol. Varsity Tutors is a massive company site, and certainly isn't down. Hmm.

My site is inkblotcomplex.co. Help is incredibly appreciated; thank you, kindly!

Footer widget code:

<div style="width:300px;margin:0 auto;"><div style="text-align:center"><span style="font:9px/14px arial; color:#3d3d3d;"></span></div><iframe id="vt_content_frame" allowtransparency="true" style="height:520px; width:300px" frameborder="0" src="//widgets.varsitytutors.com/tutors/878727847/badge?vt_theme=vt3"></iframe></div>

Respectfully,

Clara Rose

1,922 Views
Message 14 of 13
Report
Square

I'm not able to assist with third party code, but maybe it would help if you enable the SSL for your site from the Settings tab. The live site doesn't indicate a conflict, but this is often the culprit when embedded code does not display. 

1,800 Views
Message 14 of 13
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.