WordPress Templates Explained: Themes, Template Parts and Patterns

A shared header connects to two different layouts: a service page with one feature and an archive with three article cards.

You change the heading on a service page and expect the other service pages to look the same. Later, you edit what looks like an identical heading and it changes on several pages at once. In WordPress, those edits can happen in almost the same interface. The difference is whether you’re editing one page, a shared layout, or a section that several pages use.

This guide follows a small service website with three jobs: publish individual services, show articles in category archives, and reuse a booking section. By the end, you’ll know where to edit each piece, how WordPress chooses a template, and how to check which pages a change will reach.

Start with the thing you want to change

Think of a photography studio with pages for portraits, weddings, and events. Its logo and navigation should be the same across the site. The service pages need a similar structure, and each must have its own headline, photos, and booking link. A list of articles in the Weddings category needs a different layout again.

A theme supplies the site’s collection of templates and styling defaults. A template lays out a page or type of request. A template part holds a shared region, such as a header or footer. A pattern is an arrangement of blocks you can insert again. The page or post holds its own content, such as the portrait description. See how WordPress works if you want to place those pieces alongside plugins and the editor.

Change you needStart here
Switch the default template collection and styling systemTheme
Move the booking panel in every service layoutService template
Change the logo across pages using the same headerHeader template part
Reuse the booking panel in several pagesPattern
Change only the portrait service descriptionThe portrait page's content

Two sections can look identical on the public site and still be wired differently. Check the editor’s List View and whether you’re editing content or the template before making a shared change. If a button is inside a synced pattern, look for a local override or edit the source deliberately. The same-looking button in ordinary page content only belongs to that page.

See how WordPress picks a template

WordPress looks at what the visitor requested, then checks a list of possible templates in order. A single article and its category archive are two different requests. Opening a post in the Weddings category does not make it use the Weddings archive template. That template applies to the page that lists entries in that category.

In a block theme, a Weddings archive might use category-weddings.html. If that template is unavailable, WordPress can look for the category ID, then the general category or archive template, and finally index.html. Classic themes use corresponding PHP templates such as category-weddings.php, category.php, and index.php. The exact order depends on the request type. Consult the template hierarchy while debugging a real URL.

Single article

  • Opening one wedding article requests a single post.
  • The layout displays that post’s title, image and content.
  • Other articles may share the template while their content varies.

Category archive

  • Opening the Weddings category requests a list of posts.
  • An archive template can display matching entries in a Query Loop.
  • Editing the archive layout changes the list page.

The homepage is a common source of confusion. When available, a Front Page template takes precedence for the site front page. The Home template is for the blog posts index, which can be a separate page selected in Settings → Reading. After changing those settings, visit the actual front page and the posts page separately. WordPress explains these fallbacks in more detail.

Edit a layout in the Site Editor

With an active block theme, open Appearance → Editor → Templates on staging. For a shared change to article layouts, choose the template that handles individual posts. For the studio’s services, create a custom template and assign it to the intended pages, or target the relevant post type if the services already have their own. The options in your editor depend on the active theme and setup. The WordPress Template Editor guide covers the available editing paths.

  1. Preview with representative content. Use a real service page or test entry with a long title and varied images.
  2. Keep the content block. In a native block template, the Content or Post Content block displays the text and blocks from the selected entry. Put shared elements around it.
  3. Assign the intended scope. Check the page’s Template setting if you created a custom page template. For an archive, verify the URL and the Query Loop. An archive list should generally follow the current archive query unless you have a specific reason to change it.
  4. Review the save panel. WordPress can show several changed entities, such as the template and its header. Save the intended changes, then check two pages that should change and one that should stay the same.

If your site uses a classic theme, the full Site Editor workflow may be unavailable even when posts use blocks. The outer layout may come from PHP, a child theme, a theme setting, or an active visual builder. Read the MDJ guide to choosing a WordPress theme to identify your workflow before editing.

On a GeneratePress site that needs a shared single-entry layout, GP Premium’s Block Elements offer a visual route with display rules. Check the specific element type and verify that it targets the intended entries. Start with the existing layout settings if you only need a different content width or sidebar.

Check the template's scope

  • Record the URL and which template is active before editing.
  • Test two entries that should change and one that should keep its layout.
  • Review the header and footer separately if the save includes template parts.

Reuse the header with a template part

Both the article and service templates can reference the same Header template part. Change the logo in that source and the templates that reference it inherit the edit. A different header part can stay independent. A Navigation block inside the header can also point to a shared menu, so check whether you are editing the header layout or the menu itself.

An older WordPress Site Editor view with the header, content blocks and footer visible in List View.
The Header sits inside the Page template in this 2024 Site Editor view. Still from Template parts by Cynthia Norman · CC BY-SA 4.0

For a landing page that needs less navigation, first ask whether it should use a separate landing-page template, a different header part, or simply a different menu. Edit the shared header if the change belongs everywhere it appears. Assign a separate header to the landing-page template if the rest of the site should keep its current navigation. See how WordPress defines template parts.

If your site already uses the Divi Theme Builder, you can apply a global header and use a different header on selected templates. Check the assignment and whether the header is linked globally before editing it. For a native block theme, a separate header part can handle that same job.

Find the source of the shared header

  • Check that both templates reference the same Header part.
  • If the layout changed but the links did not, inspect the Navigation block.
  • If only a campaign page should differ, use a separate part or menu as needed.

Reuse an editable section with a pattern

The studio’s booking panel is content that editors need to insert into service pages. With an unsynced pattern, each insertion becomes independent blocks. You can change the wording or add a testimonial on one page. Editing the original pattern later affects future insertions. Use this mode for a starter layout that should evolve independently.

A synced pattern creates connected instances. Editing the source updates the shared arrangement across those uses. For supported blocks, you can enable pattern overrides to let certain values vary by instance. The booking panel can retain the same layout and style while an editor sets a different supported button link on the weddings page. Individual fields and block types depend on what WordPress supports.

Choose the right reuse mode

  • Reusable starting point: insert an unsynced pattern and edit the copy.
  • One shared arrangement: insert a synced pattern and edit its source for shared changes.
  • Different local content: enable overrides on supported blocks and test two instances.

Once the link or price is already stored as a custom field on each service, it may be easier to display that field automatically. On sites built with Kadence Blocks, Kadence Blocks Pro* is an option for dynamic content in supported blocks. Try it with an entry where the field is blank and verify the fallback. For three manually maintained pages, a native pattern with an allowed override may be enough.

Find which tool owns the template

Builders often call their layouts “templates” too. A library template you insert into a page can behave like a starting copy. A Theme Builder template with a display condition can render on all matching entries. Check the tool that owns the active template and its assignment rules before editing, especially after a site migration or when more than one builder is installed.

For an existing Kadence Theme site that needs conditional layouts, Kadence Theme Kit Pro* offers Template Hooked Elements. Use a rule that targets the desired pages or posts, then confirm an unrelated entry stayed on the default layout. WooCommerce product and shop templates have a separate workflow. The Kadence layout guide helps if what you need is already available in the theme.

  • Native block theme: check the template assigned to the entry or selected by WordPress.
  • Existing visual builder: check its template, publish status, and include or exclude conditions.
  • Classic PHP theme: check the hierarchy and whether a child theme supplies a more specific template.

Etch is a paid option if you need a visual workflow for site templates and reusable components and are already evaluating it for the build. Use its Template Manager to identify the active Etch layout. Test real content and confirm who owns subsequent template edits before moving an existing site over.

Diagnose edits that don't show up

If the live page still looks the same, confirm the URL, the active theme, and the template assignment first. Check for a more specific archive or entry template, then look for builder rules and a second header part. If a Git deployment changed a block theme’s files but the Site Editor still shows the old layout, look for a saved Site Editor customization. WordPress can load a customized template from the database ahead of the theme file. The Theme Handbook explains template storage.

On a site already built with Elementor, the Elementor Theme Builder is where you can check published site parts and display conditions. If a header applies on two pages and disappears on a third, compare their conditions and page layout settings before recreating the header. For a new native site, try the Site Editor before paying for a second template system.

  1. Identify the exact entity you edited. Write down the template, part, pattern or post and the expected effect.
  2. Check overrides before resetting. Back up or export the relevant customization first. Clear it on staging only when you intend to return to the theme version.
  3. Test inside and outside the intended scope. Check a matching entry, an unrelated one and any archive affected by the edit.
  4. Check the public result. If the correct layout appears in the editor but the public page is stale, confirm or purge the relevant cache and retest while logged out.

For the photography site, try three edits on staging. Update the shared header, change the layout of two service pages through their template, then edit only the portrait booking link. Each change should reach a different set of pages. Once you can predict that scope, you can build new pages without wondering which other pages an edit might affect.

FAQs

Launch Your WooCommerce Store the Smart Way

Skip weeks of design work and launch a professional WooCommerce store faster.

Explore the Theme

Leave a Reply

Your email address will not be published. Required fields are marked *