0

I want to display the site logo in one of the sections of my New account email confirmation template. So basically when the user signup they receive an email of the account creation. Now I want to customize this content. I went to Marketing -> Communication -> Email Template and change my template content. Below is what I get

<tr>
  <td valign="top">
    <a href="{{store url=""}}"><img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt="{{var store.getFrontendName()}}"  style="margin-bottom:10px;" border="0"/></a>
  </td>
</tr>

Now I'm wondering why my Site logo is not displaying. Honestly, I don't know if this is the correct code to display the actual site logo in the email. When I view the email in my email client I get a broken site logo. Any idea on how to fix this?

2
  • please explain using screenshot ... Commented Apr 16, 2020 at 18:28
  • you are using magento 1 email template code, this will not work in Magento 2.
    – paj
    Commented Apr 16, 2020 at 18:52

1 Answer 1

0

Code you are referring is for magento 1.

You can try below code:

<tr>
  <td valign="top">
    <a href="{{store url=""}}">
    <img src="{{view url="images/slide-bg.jpg"}}" alt="{{trans "%store_name" store_name=$store.getFrontendName()}}"  style="margin-bottom:10px;" border="0"/></a>
  </td>
</tr>
2
  • The src should be replace right? What is the filename being used for the email site logo? Commented Apr 17, 2020 at 5:51
  • 1
    if you want to use default logo, you can use src="{{var logo_url}}
    – Pawan
    Commented Apr 17, 2020 at 6:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.