19

How can I change the email header template

{{template config_path="design/email/header_template"}}

or footer template

{{template config_path="design/email/footer_template"}}

4 Answers 4

28

You can override these templates in your custom theme and edit the html as per your requirement.

app/design/frontend/Vendor/themename/Magento_Email/email/header.html
app/design/frontend/Vendor/themename/Magento_Email/email/footer.html
1
  • it worked like a charm, thank you!
    – Alessio
    Apr 17, 2020 at 9:05
12

You can override your core header and footer template into your theme folder,

vendor/magento/module-email/view/frontend/email/header.html

To your theme,

app/design/frontend/{Vendorname}/{thememane}/Magento_Email/email/header.html

Same Process for Footer.html file.

app/design/frontend/{Vendorname}/{thememane}/Magento_Email/email/footer.html

Run

php magento setup:upgrade
php magento setup:static-content:deploy

Clear cache.

2
  • Grazie per la risposta il mio percorso è / public_html / app / design / frontend / Magento / luma I have to create the folders / public_html / app / design / frontend / Vendor / luma / Magento_Email / email / header.html and footer.html
    – Alessandro
    Aug 4, 2017 at 8:02
  • Adminhtml custom email template not set header footer. Can you please. @Rakesh Sir
    – Ravi Soni
    Oct 1, 2018 at 6:57
6

This setting available in:

Content -> Configuration -> Default Store View -> Transactional Emails

2

In Magento 2.3.5 you can set it here: Content -> Design -> Configuration --> /YOUR STORE/ --> Transactional emails

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.