Good day
how do I resize my logo on the emails?
Thanks for the help/
In the Theme editor upload logo for e-mails in the required dimensions
In the 4.15.1 version there were additional optimizations made to the logo in the email templates. You can replace the following code:
<td><a href="{{ storefront_data.url }}"><img src="{{logos.mail.image.image_path}}" alt="{{ company_data.company_name }}" width="{{logos.mail.image.image_x}}" height="{{logos.mail.image.image_y}}" /></a></td>
with this one:
<td><a href="{{ storefront_data.url }}"><img src="{{logos.mail.image.image_path}}" alt="{{ company_data.company_name }}" width="{{logos.mail.image.image_x}}" height="{{logos.mail.image.image_y}}" style="width: auto; max-width: 300px; max-height: 150px;" /></a></td>
in the Header notification snippet in order to make the logo to look nice.
Hope it helps.
I want to reduce the logo size in emails as well. The code you provided is the same as the one you said they should replace. Am I missing something?
Looks like you can play with the max_height and max_width values
Yes I have played around with those and it seems to have resolved my issue. Cheers for commenting on this.
Thanks for pointing this out. Unfortunately I can’t remember why the same code was posted twice, but it’s fixed now.