Header template

After completing the configuration, the email header template includes your logo that is linked to your store. If you have a basic knowledge of HTML, you can easily use predefined variables to add store contact information to the header.

Step 1. Load the default template

  1. On the Admin sidebar, go to Marketing > Communications > Email Templates.

  2. Click Add New Template.

  3. In the Load default template section, click the Template selector and choose Magento_Email > Header.

    Email template header - load default template

  4. Click Load Template.

    The HTML code and variables from the template appear in the form.

Step 2. Customize the template

  1. Enter the Template Name for your custom header.

  2. Enter a Template Subject to help organize the templates.

    In the grid, the list of templates can be sorted and filtered by the Subject column.

    Email template header information

  3. In the Template Content box, modify the HTML as needed.

    NOTE
    When working in the template code, be careful not to overwrite anything that is enclosed in double braces.
  4. To insert a variable, position the cursor in the code where you want to place the variable and click Insert Variable.

  5. Choose the variable that you want to insert.

    Header template - Insert variable

    When a variable is selected, a markup tag for the variable is inserted in the code.

    Although the Store Email Address variables are the ones most often included in the header, you can enter the code for any system or custom variable directly into the template.

  6. If you need to make any CSS declarations, enter the styles in the Template Styles box.

  7. When you are ready to review your work, click Preview Template.

    Make any needed changes to the template.

  8. When complete, click Save Template.

    Your custom header now appears in the list of available email templates.