 Hi and welcome to Learn WordPress. Today we are going to take a closer look at the site editor and template editor. If you have installed a block theme such as 2022, you will notice that the customizer has disappeared. But when you make your way to appearance, you will see an option, namely the editor. And when you click on the editor, you'll be taken to the site editor. And here you are able to modify templates, template parts, and also customize the style of your entire site. The site editor provides a template list view, as you will see on the left, allowing users to navigate between site, templates, and all the different template parts. This is an important piece of the site editor puzzle. You will essentially be able to edit the design of your entire site. In order to switch what you are viewing, click on your WordPress icon or site icon top left. You will then be able to select between going back to your dashboard, site, your list of templates, and your list of template parts. If you click on the three vertical dots top right, you will notice there are some settings and preferences. For example, spotlight mode, which will help you focus on one block at a time. And if you scroll down, there's another option called keyboard shortcuts, which might come in very handy. And then right at the bottom, if you click on preferences, there are some options to take note of. Spotlight mode, the option to show button text labels, instead of icons, and lastly, always open list view, which basically means that the list view for blocks will always be open or visible. How to edit styles. When you click on the styles icon, you have the ability to change the style combination of your theme, and you can change the typography, colors, and layout of your entire site. And if you look down further below, you also have the option to customize the appearance of specific blocks for your whole site. Global styles, therefore, helps users change the style of their site without having to edit individual blocks or pages. Let's see how it works. If you click on typography, you'll be able to manage the typography settings for text, links, headings, and buttons. And you can also change the colors for these elements. And when you make your way to layout, you will notice you even have control over elements such as padding and block spacing. How do we manage templates via the site editor? Click on the WordPress icon, top left, and make your way to templates. Templates are groups of blocks combined to create a design for a webpage. Here you will notice there is a range of templates that come with your theme, built-in templates. For example, the page template that displays a single page or the index template that displays posts or the 404 template that displays when no content is found. And when you click on add new top right, you'll be able to add a variety of new templates. Even a custom template that can be applied to any post or page. Let's open the page template to gain a better understanding of how a template works. A page template usually includes a header, a content area, and specifically the post content block that pulls in the content from the page it is assigned to, and then a footer. When you create a template, you get the best use when you separate the reusable parts from the dynamic part. The dynamic part is the content part that will change for every page that uses the template. Remember therefore, you don't add content to the page or index template. The content from a page or post will be pulled in by the post content block or the query loop block. The reusable parts are the static parts of the template that will stay the same. For example, the header and the footer. So let's go and visit a page that has been assigned to this template. So I am happy with my footer and with my header. But I would like to remove the post title, post featured image and the separator block, as well as the spacer block above the post content block. And once I've clicked save, we wanna make our way to the front end of the website. But before that, let's open up the page that we want to view from the front end. As you will notice, I have added some dummy content. And on the right in the sidebar settings, we can see this page has been assigned to the page template, which is the default template. And now, if we make our way to the front end of the website and open up this page, we will see the structure that we have created with our page template. Let's also talk about template parts. As mentioned, a template usually has a header and a footer and these are called template parts. When you make your way to template parts, we will see template parts that we've created ourselves and template parts that have been provided by our theme. And if you see a dot above the template part icon, you will know that this template part has been customized. To create your own template part, click on add new top right. And when you add a new template part, 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 part a descriptive name. Let's see how we can change the template part that the template is using. So I'm going to make my way to the index template, which displays posts. I'll open up my list view. Select the header. Now we can edit the template part header that has been provided by our theme in template editing mode. Or we can go back, select the header again, click on the three vertical dots and select replace header. And here you are able to select an existing template part or a pattern. To end off, let's talk about the template editor. The template editor lets you edit, create and assign templates to individual posts and pages. So let's say for example, I created a custom template for a landing page that I wanted to use on my site. I can name it appropriately and then click create. And now I have updated my landing page template with a new header and a new footer. But let me show you how the template editor works. By making our way back to our test page. Now, as you would have remembered, this page has been assigned to the page template. But the template editor will allow you to assign this page to a different template if you wish to. You can also create a custom template in the template editor by clicking on add template and following the same process as we did before. Let's see how it works when we assign a new template to this page. In this case, I'm going to select the landing page template that I just created. Once I've updated, we can make our way to the front end of the website. And when we open up the page now, we will notice the new template with the new template parts have been assigned to this page. We trust you now have a better understanding of how to use the site editor and template editor. Visit Learn WordPress for more tutorials and training material.