Back to Support Design Your Site Edit a Template

Edit a Template

A template controls the layout in which the content of pages and posts is presented. This guide will show you how to edit templates to customize page and post layouts, including header and footer elements.

Step 1: Choose a Template

Your theme includes a set of templates that you can edit. To edit a template included with your theme, follow these steps:

  1. Visit your site’s dashboard.
  2. Navigate to Appearance → Editor.
  3. Click on the “Templates” option in the left sidebar.
  4. On the main page area, click on a template preview thumbnail to open the template in the editor.
    • You can also click on the three dots at the bottom right corner of each template and select the “Edit” option.
Slow down or speed up the video using the controls in the lower right corner after clicking Play

You can also edit templates while editing an individual page or post with the following steps:

  1. While editing a page or post, open settings on the right sidebar.
  2. Click on the template name (1) to open the template options.
  3. Select the “Edit template” option (2).
  4. Make your changes, which will apply to all pages that use that template.
The Template section of the Page Settings sidebar, open to display the template options and an arrow highlighting the "Edit template" option.

Step 2: View Details About Your Template

In the template editing screen, you will find the name of the template you’re editing (1), and under Settings, you’ll find “Template”(2):

The Template Editor highlighting the Template name and the Template section on the sidebar.
How to know you’re editing a template

To view a list of all the blocks in your template, click on the List View at the top left of the screen (the icon looks like three horizontal lines.) List View is useful for seeing the overall structure of your template before you start editing specific sections. You can then click on any block in the List View to move, remove, or change that block’s settings or content.

List View showing a list of blocks in the Template Editor
List View in the Template Editor

Step 3: Edit the Template Blocks

While editing a template, click on any block to adjust the content or change the block settings. Some of the actions you can take here include:

The possibilities are endless! Learn more about using the WordPress Editor here.

Step 4: Save Your Changes

When you’re finished making edits, you can save your changes by clicking the “Save” button at the top right.

The affected templates and template parts will be shown here. Review the changes, and click the “Save” button again to save your changes.

The Templates and Template Parts that will be affected by saving changes in the Template Editor.

Restore a Template Revision

If you change your mind after making changes to your template, you can restore your template to a previous version.

To restore a template revision from the Site Editor:

  1. In the Settings sidebar on the right, locate the Template section and click on the Revisions panel.
  2. You will be taken to the Compare Revisions page, where you will still see the history of template revisions with a slider to load earlier ones.
  3. Click on the slider to browse through previous revisions.
  4. Once you browse to a revision to revert, click the “Restore This Revision” button to load it in the editor.
  5. Click the button labeled “Save” to restore the template revision.
Revisions section under Template settings in the Site Editor.

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!