Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Klaviyo - image-block removing all attributes. #12

Open
JayOram opened this issue Nov 1, 2021 · 0 comments
Open

Klaviyo - image-block removing all attributes. #12

JayOram opened this issue Nov 1, 2021 · 0 comments
Labels

Comments

@JayOram
Copy link

JayOram commented Nov 1, 2021

Using the klaviyo-image-block as described in the official Klaviyo documentation. Will remove all attributes from the <img> tag.

<td data-klaviyo-region="true">
   <div class="klaviyo-block klaviyo-image-block">
<a href="https://example.uk/"><img src="https://via.placeholder.com/1280x800" style="display:block;width:100%;max-width:640px;" alt=""></a>
   </div>
</td>

The image gets changed changed to:

<img align="left" alt="" class="kmImage" src="https://d3k81ch9hvuctc.cloudfront.net/company/QZbYdW/images/9c191499-33ef-494d-b20a-67849b71016c.png" style="max-width:640px;padding:0;border-width:0;" width="600">

Therefore losing responsiveness and removing display:block; causing issues!

The workaround is to use a klaviyo-text-block - so that you can edit using the 'source' button - but not use the image UI.

@the2ne the2ne added the Klaviyo label Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants