Jump to content

Adding Klaviyo embed code to markdown block - not working

Recommended Posts

Site URL: https://moneymoves.com.au

Hi,

I'm looking for some help to get a markdown block to run Klaviyo embed code.

I'm not sure if this will work, but I've previously added code to my website to allow html language in the markdown block AND I've previously successfully used ConvertFlow code in a markdown block, but it was accompanied by some script which may have helped. 

I am trying to get rid of ConvertFlow if I can make Klaviyo do what I need it to. Oh and for extra context, I'm trying to add the Klaviyo code to the Markdown block to have more control about where it shows up and how it aligns - I'm finding that less elements are better. 

The elements are in the first section on my site - photos of the blocks attached for reference. 

Convertflow code in markdown block, with text code
<script>
if (window.convertflow == undefined) {
var script = document.createElement('script'); 
script.async = true;
script.src = "https://js.convertflow.co/production/websites/29300.js"; 
document.body.appendChild(script); 
};
</script>
<div class="cf-cta-snippet cta94681" data-website-id="29300" data-cta-id="94681"></div>

Klaviyo code in markdown block, with text code
<div class="klaviyo-form-R6tL2t"></div>

Klaviyo code in code block
<div class="klaviyo-form-R6tL2t"></div>

Let me know if you have any questions. 

Thank you

Squarespace forum - klaviyo code question.png

Edited by jtother
Update
Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.