In the last article, we have known the basic information about Magento 2 Email Templates. Too many kinds, right? We believe that now you are very curious about how to configure all of them, but we can’t do at a moment. So today, we will learn how to configure email templates in Magento 2 with easiest steps: Prepare your logo and configure footer and header.
So, How we can configure email templates in Magento 2?
The configuration determines the logo, as well as the header and footer templates that are used for all email messages sent from your store. That is very simple process with 3 steps:
STEP 1: Preparing Your Email Logo
Logos can be saved as any of the following file types: jpg/jpeg, gif and png
To ensure that your logo renders well on high-resolution devices, the uploaded image should be three times the size of the dimensions that are specified in the header template. Typically, original logo artwork is created as a vector image, so it can be scaled up without losing resolution. The image can then be saved in one of the supported bitmap image formats.
1/3 Logo Rule
As a general rule, you can make an image smaller than the original, but not larger without losing resolution. Taking a small image and scaling it up in a photo editor lowers the resolution of the image. For example, if the display dimensions of the logo are 168 pixels wide
by 48 pixels high in the header template, the uploaded image should be 504 pixels wide by 144 pixels high.
Step 2: Upload Your Logo
- Firstly, from the Admin sidebar, navigate to Stores>Settings>Configuration>General. After that, choose Design under General
- Secondly, expand the Emails section. Then, do the following:
a. Tap Browse. Find the file on your computer, and select the file.
b. In the Logo Image Alt field, enter alternate text to identify the image.
c. Enter the Logo Width and Logo Height in pixels. Enter each value as a number. These values refer to the display dimensions of the logo in the header, and not to the actual size of the image.
Step 3: Select the Header and Footer Templates
- Choose the Header Template to be used for all transactional email messages.
- Choose the Footer Template to be used for all transactional email messages.
- When complete, tap Save Config.
Notice: If you have custom header and footer templates for your store, or for different stores, you can specify which templates are used for each, according to the scope of the configuration.
That is How we can configure email templates in Magento 2. With the information here, Magento 2 email templates will be in your control. Use this Magento 2 configuration in the right way, it can make a really good effect to your customers.
Hope my post can be helpful. Thanks for reading!