Templates and Template Parts

Short url: https://ewp.guide/go/templates-and-template-parts

Whilst this guide was never intended to be a guide for developers, or for building or modifying themes, you may find it helpful to have a basic understanding of the different Templates and Template Parts that make up a Theme. For most people, the theme you’re using will have all the templates that you’ll need. If you want to change the way some part of your site looks, it will just be a matter of editing one of the existing templates.

For some people though, you may want to completely customise your site, either by editing existing templates, or creating new templates. This is where an understanding of templates will come in handy, along with an understanding of the WordPress Template Hierarchy.

The WordPress Template Hierarchy helps WordPress determine which template to use when displaying your content in the browser. As an example, WordPress will typically use a different template to show your standard Page content, compared to what it uses to show your Blog archive page (i.e. the page that shows a list of your latest blog Posts). The Theme Handbook over on the official WordPress.org website explains in further detail, how this Template Hierarchy works, along with providing a visual overview of when each template is used.

To edit a particular template using the Full Site Editor, or to create a new template, click the Templates menu in the left-hand navigation. You’ll be shown a list of the templates contained within your current theme. Clicking on one of the template names, such as the ‘Pages’ template, will allow you to edit the actual template.

Full Site Editor Templates Library

If you’d like to create a new template that doesn’t currently exist within your theme, click the Add New Template button at the top-right of the screen, and then click on the template that you wish to add to your theme. You can also create a custom template with the Custom template option.

Full Site Editor Templates Library