---
schema_version: "1"
id: 235980ab6cb32edbf51efd7523ac0fc7339afe17816e95aab358c3eebad89d17
title: Customize Header and Footer Code
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_es_implement_headers_footers.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_es_implement_headers_footers.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 54f4f340946b0c29472348a33d045f3fc72b3abf180cbfcdf2ffb08d630a8137
description: Customize the header and footer code to use in the emails you create with Email Studio.
products:
  - Marketing
  - Marketing Cloud Engagement
release: "264"
---
# Customize Header and Footer Code

Customize the header and footer code to use in the emails you create with Email Studio.

1. On the Admin tab, under Account Settings, click **Edit**.
2. Select whether to edit the system default or custom code.
3. To overwrite the current code, click **Insert Recommended Header** or **Insert Recommended Footer**, and make additional edits.
4. If you selected custom code, enter the HTML you want to use, and save your work.
5. To use header or footer code in an email, try one of these methods.
    - Add the code to a Content Builder template.
    - Use AMPscript to retrieve the header or footer that you want.
    - Use a reference block in Content Builder.
6. To insert a header or footer into a custom template or HTML Paste email, use this code.
    
    `<custom type="header" name="header" />`
    
    <custom type="footer" name="footer" />