 Welcome to Learn WordPress. In today's session, we are going to be talking about templates. A template provides the structure for how a page is displayed. That usually includes a header template part, a content area, and a footer template part. I think it is important to clarify the following information from the start. Templates are not for posting content. And templates for a post or page display your content with the post content block. Templates are, as the name implies, design templates that can be applied to single or multiple pages and posts. To access templates, make your way to appearance and click on editor. This will take you to your site editor. The site editor can be used to modify templates, template parts, and also customize the style of your site. When you click on the styles icon, top right, you have the ability to change the typography, colors, and layout of your entire site. But we are here to talk about templates. So click on templates in the template list view. When you start building a new website, you can edit existing templates or add new ones. And the theme you are using will determine which existing or built-in templates are available to use. So first up is the page template, which creates structure for how individual pages will be displayed. Next is the single post template, and this displays a single blog post. The index template is used to display posts, and the 404 template displays where no content is found. And then of course there are other built-in templates also worth exploring. To add a new template, click on the insert or plus icon next to templates. The modal appears where you can choose between different template options. You can even create your own custom template that can be applied to any post or page. But how do you edit templates via the site editor? You merely have to click on the template, and once it opens up, you can start editing your header and footer template parts. Let's just pause to reflect for a moment. When you create a template, you get the best use when you separate the dynamic part and the static parts. The dynamic part is the content part that will change for every page or post that uses the template. And the content from your page or post will be displayed where the post content block has been added. And the static parts are the reusable parts of the template that will stay the same like the header and the footer areas. Let's look at a sample page to see how this practically works. I've added my content to my page in the block editor and I've assigned this page to the page template, which is the default template. And this is the dynamic content that will be displayed on the front end through the post content block. And when we click on preview, we will be able to see the structure of the template that has been assigned to this page with the header template part, the content which is being displayed by the post content block, and the footer template part. When we make our way to manage templates, it is important to note that it says customized next to a template that has been customized. And when you click on the three vertical dots on the right hand side of the template, you will be able to clear all customizations you have made in one click. Next, let's talk about template parts. When we make our way to template parts, we will see template parts that we've created ourselves and ones that have been provided by our theme, which we can edit. For context, template parts are used to create areas like your header, footer, and sidebar. To add a new template part, click on the insert next to template parts. You have an option between general, header, and footer template parts. General template parts are not tied to any particular area. And remember to give your template parts a descriptive name. Lastly, we are going to discuss the template editor. So I've created a custom template with a new header and a new footer. We are gonna make our way to the dashboard and open up our sample page. The template editor lets you edit, create, and assign templates to individual posts and pages. When you create a new page or post, it is automatically assigned to the default template. And for pages, the default template is the page template. To add a template, click on the add template icon top right. And once you've named it, you can set up a custom template as you did in the site editor. To assign a template to this page, click on the drop down and select one of the custom templates you have made or one of the built-in templates provided by your theme. I'm going to assign the custom template that I've created to show you how the structure of the page changes. So once I've updated, we can click on preview. And now you will notice that this page has a new header template part and a new footer template part, as I've assigned this to a custom template that I've made. We hope you now have a better understanding of how templates work. To review, a template provides the structure for how your content is displayed. And it can be assigned to single or multiple pages or posts to control the layout and look you are after. Please visit Learn WordPress for more tutorials and training material.