FLASH SALE Get 20% OFF everything using the coupon code: FLASH20 View Pricing Plans →

Categories

Documentation

Theme Documentation



Plugin Documentation



Resources

Using Page Templates in Block Themes

Page Templates in Block Themes are a collection of blocks that are arranged to create a specific design for a webpage. These templates often include a header, sidebar, and footer. In this tutorial, you will learn how to use, edit, and add templates to customize your site and give your posts and pages a unique appearance.


Here is a quick tutorial on how to edit page templates in block themes:

  1. From your WordPress dashboard, go to the “Appearance” menu and click on “Editor“.
  2. In the Full Site Editor, click on the “Templates” tab in the left-hand menu.
  3. From the list of templates, click on the template you want to edit.
  4. In the template editor, you will see a preview of the template and a list of blocks that make up the template.
  5. To edit a block, click on it in the template preview or in the list of blocks on the right. This will open the block editor, where you can modify the content and settings of the block.
  6. To add a new block to the template, click on the “Add Block” button at the bottom of the template editor. This will open a list of available blocks that you can add to the template.
  7. When you are finished making changes to the template, click the “Publish” button to save your changes.

Remember to save your changes frequently as you work.

If you want to discard your changes, you can click the “Clear customizations” button:

Optionally, you can copy all blocks from a template and create a new custom page template.


How to Create a Page Template in Block Themes

There are two simple methods to create a new page template when using a Block Theme:

1. From the Site Editor:

You can create a new Page Template by clicking the Add New button in Editor > Templates

or

2. From the Page Editor:

When creating or editing a page, click on the Template in the right sidebar and you will see a small icon which allows you to create a new template:

Once a template was created, you have full control over its entire design, including header and footer. In this way you can easily create landing pages with no distractions, or sections with a different header/footer from the rest of the website.


How to Copy All Blocks in a Page Template

You can copy all the content from the template, paste it into an individual post or page, then reset the affected template.

Copy all Content From the Template

Within the Site Editor, you can copy all the content to your clipboard and then paste it into a new post or page.

  1. Go to Appearance → Editor.
  2. Select the template you want to copy.
  3. Click the ellipses menu in the top right of the Editor.
  4. Select Copy all Blocks.
  5. Create a new post or page.
  6. Right-click and select Paste, or press Ctrl + V (Windows) or Cmd + V (Mac) keys to paste the content into the new post/page.
Last updated on April 3, 2023

Related Docs