can I replace the header and footer by using block in this email template file? I want to use something else that I created in (Content->Block) Is it possible?

enter image description here

1 Answer 1


You can override these template on your theme, so


You can't directly use a block since here we have html template. But you can configure a block via layout.xml and call it on email template.

You can check for example the email layout of a new order where you can find something like

{{layout handle="sales_email_order_items" order_id=$order_id area="frontend"}}

and if you search in the layout folder you'll find "sales_email_order_items.xml" with the block passed to the template. In here you can call your static block.

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.