Solved

Canva HTML export problem

  • 20 January 2021
  • 4 replies
  • 548 views

Badge

Hello, I’m trying to export HTML template from Canva into Klaviyo (Email Template) I’m able to copy the code from Canva and paste it into Klaviyo along with the unsubscribe tag. I end up with a total of 17 lines and am able to see the preview with no problem. The problem comes in after I save, exit out, and try to preview again. I view the code in Klaviyo and it has 14 lines instead of 17.

Can anyone help in this matter? I can 

 

(17)

<html>
  <body>
    <p>
<div style="position: relative; width: 100%; height: 0; padding-top: 141.4286%;
 padding-bottom: 48px; box-shadow: 0 2px 8px 0 rgba(63,69,81,0.16); margin-top: 1.6em; margin-bottom: 0.9em; overflow: hidden;
 border-radius: 8px; will-change: transform;">
  <iframe style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; padding: 0;margin: 0;"
    src="https:/&#x2F;www.canva.com&#x2F;design&#x2F;DAETyVyeYM0&#x2F;view?embed">
  </iframe>
</div>
<a href="https:&#x2F;&#x2F;www.canva.com&#x2F;design&#x2F;DAETyVyeYM0&#x2F;view?utm_content=DAETyVyeYM0&amp;utm_campaign=designshare&amp;utm_medium=embeds&amp;utm_source=link" target="_blank" rel="noopener">Black Yellow Photo Email Newsletter</a> by theUNOpage
    </p>
    <p>
      footer text here {% unsubscribe %}
    </p>
  </body>
</html>

 

(14) AFTER SAVE

<html>  
  <body>    
    <p>      
    </p>
    <div style="position: relative; width: 100%; height: 0; padding-top: 141.4286%;
 padding-bottom: 48px; box-shadow: 0 2px 8px 0 rgba(63,69,81,0.16); margin-top: 1.6em; margin-bottom: 0.9em; overflow: hidden;
 border-radius: 8px; will-change: transform;">      
    </div>
    <a href="https://www.canva.com/design/DAETyVyeYM0/view?utm_content=DAETyVyeYM0&amp;utm_campaign=designshare&amp;utm_medium=embeds&amp;utm_source=link" rel="noopener" target="_blank">Black Yellow Photo Email Newsletter</a> by theUNOpage
    <p>
      footer text here {% unsubscribe %}
    </p>
  </body>
</html>

icon

Best answer by Dov 7 April 2021, 16:27

Hi @theunopage,

Thank you for sharing this information with the Klaviyo Community.

Most email clients don’t allow embedding iframes and other modern HTML features for security reasons or haven’t implemented support yet. Because they’re not supported well, we strip out <iframe> elements when you’re building an email so your recipients don’t get an email with less than what you expected.

It’s probably best to create a button and link out to the page you want, e.g. a Facebook group page. If you want to create more of a visual, you could take a screenshot of the webpage and then link the image to the live page.

Thanks and have a great day.

View original

4 replies

Userlevel 5
Badge +3

@theunopage The difference I'm seeing is that Klaviyo has changed the codings to normal readable formats so &#x2F; turns into /

This should not effect your email so it's ok.

Or are you experiencing some other issue?

Badge

Thank you very much for your reply. Sorry for not mentioning that when the code has (17) lines I can preview the email template as it should be. However, when is goes to 14 lines the email template is blank.

I have this issue as well. Any solve?

Userlevel 6
Badge +4

Hi @theunopage,

Thank you for sharing this information with the Klaviyo Community.

Most email clients don’t allow embedding iframes and other modern HTML features for security reasons or haven’t implemented support yet. Because they’re not supported well, we strip out <iframe> elements when you’re building an email so your recipients don’t get an email with less than what you expected.

It’s probably best to create a button and link out to the page you want, e.g. a Facebook group page. If you want to create more of a visual, you could take a screenshot of the webpage and then link the image to the live page.

Thanks and have a great day.

Reply