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:
- From your WordPress dashboard, go to the “Appearance” menu and click on “Editor“.
- In the Full Site Editor, click on the “Templates” tab in the left-hand menu.
- From the list of templates, click on the template you want to edit.
- In the template editor, you will see a preview of the template and a list of blocks that make up the template.
- 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.
- 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.
- 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
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.
- Go to Appearance → Editor.
- Select the template you want to copy.
- Click the ellipses menu in the top right of the Editor.
- Select Copy all Blocks.
- Create a new post or page.
- Right-click and select Paste, or press Ctrl + V (Windows) or Cmd + V (Mac) keys to paste the content into the new post/page.
- 20 Full Site Editing Tips and Tricks [Video]
- Everything you need to know about WordPress Full-Site Editing & Block Themes
- How to Create a Menu with the Navigation Block
- How to Customize Colors & Fonts in Block Themes
- How to Customize the Header & Footer in WordPress Full Site Editor
- How to Upload your Logo Image in Block Themes
- The Difference Between Reusable Blocks, Block Patterns, Templates & Template Parts