I want to override magento email template file.

  • app/design/frontend/Vendor/themename/Magento_Email/email/header.html
  • app/design/frontend/Vendor/themename/Magento_Email/email/footer.html

1 Answer 1


Create a requirejs-config.js in the below location:


and add the below code to requirejs-config.js

var config = {
    map: {
        '*': {
          'Magento_Email/email/header.html': 'Vendor_Module/email/header.html',
          'Magento_Email/email/footer.html': 'Vendor_Module/email/footer.html',
  • Thanks, In my case email header is dynamic according to the stores, any solution of it.
    – Lokesh Das
    Aug 3, 2018 at 14:51
  • Create different headers and footers with different name then assign those to your stores should work. Aug 3, 2018 at 14:53

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.