Custom Email Header and Footer Template in Magento 2
-
15-04-2021 - |
Domanda
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"}}
Soluzione
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
Altri suggerimenti
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.
This setting available in:
Content -> Configuration -> Default Store View -> Transactional Emails
In Magento 2.3.5 you can set it here: Content -> Design -> Configuration --> /YOUR STORE/ --> Transactional emails
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange