Added html to site, entire site broke

I was told to put in this snippet of code for this very expensive software we’ve purchased and they’re saying it won’t work (probably) because of the builder plugin we use. Can you confirm why this would happen?

They copied the home page html plugged in the code and their software works just fine. Only when I did it in the builder in a certain section did the entire site break

I put this in the header:

<script>
var CRL8_SITENAME = 'myaderm-umnlon'; 
!function(){var e=window.crl8=window.crl8||{};e.pixel=e.pixel||function(){e.pixel.q.push(arguments)},e.pixel.q=e.pixel.q||[];var i=window.document,t=i.createElement("script"),n=e.debug||-1!==i.location.search.indexOf("crl8-debug=true")?"js":"min.js";t.src=i.location.protocol+"//cdn.curalate.com/sites/"+CRL8_SITENAME+"/site/latest/site."+n;var c=i.getElementsByTagName("script")[0];c.parentNode.insertBefore(t,c.nextSibling)}();
</script>  

And this on the home page.

<div data-crl8-container-id="homepage"></div>

Hi There,

Thank you for writing in, the first block of code is not an HTML, its a JavaScript. Please add that in Theme Options > JS area. Remove the <script> and </script> tag, because that will be automatically wrapped with <script> tag in the front end.

The second code is the HTML, you can paste that to your page using the Classic Raw Content element. It will not show a preview on the Cornerstone though, but it will show your gallery widget on the front end.



Yup, I tested it.

Hope it helps,
Cheers!

Awesome!!!

Glad we could help.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.