CMS Development

aselekof
Member

Hubl email template: making image not scalable by Hubspot builder/editor

I have a linked image that I need to inherit the styles set in the template. When the image is populated in the email builder/editor this tag is appended to the image src: "?upscale=true&width=210&upscale=true&name=img_name.png"

 

Is there something I can add to the below hubl to not allow this scaling?

 

{% linked_image "Image15" label='Image15', link="#", open_in_new_tab=True, alt='', src='img_path.jpg?noresize', width='auto', style='border-width:0px; border:0px; width:auto; max-width:105px; max-height:50px; display: block;' %}

0 Upvotes
2 Replies 2
webdew
Guide | Diamond Partner
Guide | Diamond Partner

Hubl email template: making image not scalable by Hubspot builder/editor

Hi @aselekof ,

Use this code and add refrence class before image tag:

.your_claas_name img{
all: inherit !important;


Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 

natsumimori
Community Manager
Community Manager

Hubl email template: making image not scalable by Hubspot builder/editor

Thank you for your post @aselekof .

@Jake_Lett and @Indra - Would you mind sharing your advice here?