WordPress theme vs template comes down to scope. A theme is the whole design package your site runs on, and only one theme can be active at a time. A template is one layout inside that theme: the file, or the block-editor entry, that decides how a single page or one type of content is arranged. Marketplaces muddy this by selling whole themes under the word template.
A WordPress theme is a folder of files in wp-content/themes that WordPress loads to turn your stored content into pages. A template is one of those files, matched to a kind of URL by the template hierarchy, and a template part is a reusable section such as a header that several templates pull in. Anything else sold as a template is a seller's word, not WordPress's.

In words: work out which template the sentence means, find where it lives, decide who edits it, assign it to the one page that needs it, then put a child theme around any file you change. Everything below is checked against the WordPress Theme Handbook and the WordPress.org documentation, read on 5 December 2026, when the release archive listed 7.1.5 of 18 November 2026 as current.
Which of the three meanings of template do you mean?
Three different things are called a template in WordPress, and the person you are talking to usually means the third one. Separating them is most of the argument.
| What people mean | What it really is | Where it lives | Who changes it |
|---|---|---|---|
| "The template file" | A PHP file in a classic theme, such as page.php or single.php, picked by the template hierarchy | The theme folder on the server | A developer, through files |
| "The template in the editor" | A block template, an .html file of block markup, with template parts for the header and footer | The theme's /templates and /parts folders, or the site database once someone saves an edit | Anyone with admin access, in the Site Editor |
| "The template I bought" | A ready-made design: a commercial theme, a starter site, or a page-builder kit | A zip file from a marketplace, imported into an existing theme | Whoever bought it, usually with a page builder |
So "we need a new template" can mean one page needs a different layout, the header needs an edit on every page, or the whole site is being replaced. Those are a two-hour job, a two-day job and a two-month job. I ask which one before quoting anything.
Where does each template actually live?
A theme lives in a folder, a block template starts as a file and can end up in the database, and a bought template is a zip that becomes one of the first two. The Templates page in the Theme Handbook names the three places WordPress looks, in this order of priority: a user-saved template in the database, a template in an active child theme's /templates folder, then a template in the parent theme's /templates folder.
That first line matters more than anything else in this guide. The Site Editor saves your edits into the database, as the wp_template and wp_template_part post types, and from that moment the database copy overrules the theme's own file. A developer can change page.html in the theme all day and see nothing happen on the front end.
- Classic theme: PHP files in the theme root, with
style.cssandfunctions.phpbeside them. - Block theme: block markup in
/templates/*.htmland/parts/*.html. Onlyindex.htmlis required, and its presence is how WordPress decides a theme is a block theme at all. - Template parts: files in
/parts, pulled in by the Template Part block, written as<!-- wp:template-part {"slug":"header"} /-->. The Template Parts page says nested part folders are not supported. - User edits: database rows, created the first time someone saves in the Site Editor.

Which template does WordPress load for a URL?
WordPress reads the URL, works out what kind of page is being asked for, then walks a list of file names from most specific to least specific and uses the first one it finds. That list is the template hierarchy, and it is the reason your new layout sometimes does not appear: a more specific file is winning.
These rows come from the Template Hierarchy page, written for block themes. In a classic theme the same names end in .php.
| What the visitor opened | Order WordPress tries |
|---|---|
A page with the slug about-me and ID 200 | {custom-template}, page-about-me, page-200, page, index |
| A single post | {custom-template}, single-{post_type}-{post_name}, single-{post_type}, single, singular, index |
A category archive with the slug news and ID 123 | category-news, category-123, category, archive, index |
| The blog posts index | front-page (if posts are on the front page), home, index |
| The privacy policy page | privacy-policy, then the page hierarchy above |
Two details save hours. The Home template is the blog posts index, not the site's front page, a name the handbook kept from WordPress's blogging days. And front-page wins over both, whatever you chose under Settings > Reading.
Who edits a template, and what can a client safely change?
In a block theme a client can edit almost everything from Appearance > Editor, which is why a handover needs rules. The Site Editor documentation lists its areas as Identity, Styles, Pages, Navigation, Patterns and Templates. Some touch one page; some rewrite the whole site.
| Change | What it affects | Safe for a non-technical client? |
|---|---|---|
| Page content in the block editor | That page only | Yes |
| Inserting a pattern into a page | That page only, as a fresh copy | Yes |
| Styles: colors, typography, a style variation | Every page, but only presentation | Yes, with a staging site to look at first |
| Editing a synced pattern | Every place that pattern is used | Careful: that is the point of synced |
| Editing the header or footer template part | Every template that includes the part | No, not without a review |
| Editing the Pages or Single Posts template | Every page or post that has no custom template | No |
| Editing theme files over FTP | The whole site, and lost at the next update | No |
The documentation puts the same warning in one line: changes to the header and footer templates apply to all pages that use them, not just the page you were working on. I set client sites up so the weekly work is content, pages and patterns, and templates are a thing we change together.
Where do patterns and synced patterns fit beside templates?
A pattern is a group of blocks saved for reuse, and it is usually the right thing to hand a client instead of template access. The Introduction to Patterns page defines them plainly: one or more blocks, pre-configured, ready to insert into content or into a template.
- Not synced: inserting it creates a new copy. Later edits to the copy change nothing anywhere else. Every pattern that ships inside a theme is of this type, and the handbook says syncing theme patterns is not currently possible.
- Synced: one shared instance, so an edit shows up everywhere it was used. These were called reusable blocks in older versions of WordPress, and they can only be created in the admin, not shipped in a theme.
- Template part: a section a template loads by slug, such as the header. Unlike a part, a pattern bundled in a theme can run PHP, which is how theme authors translate its text and point at their own images.
- Classic themes: the Appearance > Editor > Patterns screen is not available, but since WordPress 6.5 a classic theme reaches patterns at Appearance > Patterns instead, so it is not shut out of them.
A good handover looks like this: staff build a landing page from four patterns, nothing structural is at risk, and the one block that must stay identical sitewide is a synced pattern.
How do you give one page its own template?
You assign a custom template to that page from the editor sidebar, and the template is only offered if the active theme provides one. The Template Editor documentation and the classic Page Templates page describe the two routes.
- Open the page from Pages in the admin, which loads the block editor.
- Open the Page tab in the settings sidebar and click the template name shown next to Template.
- Pick an existing custom template, or create one. In a block theme the editor offers to make a new one and saves it in the database.
- In a classic theme the list is built from files. Any file in the theme with a
Template Name:comment in its header appears under Attributes > Template, and that is the only way a template becomes selectable. - Save the page. WordPress stores your choice in the
_wp_page_templatecustom field on that post, which is why the setting survives a theme switch and sometimes points at a file the new theme does not have.
Two naming rules from the same page. Do not prefix a reusable file with page-, because WordPress reads page-about.php as a specialized template for the one page whose slug is "about". And since WordPress 4.7 a custom template can serve posts and custom post types too, with a Template Post Type: post, page line in its header. The handbook notes these were renamed from page templates to custom templates once they stopped being page-only, which is why both names are in circulation.
Why do template edits disappear after a theme update?
Because the update replaces the theme folder, and your edited file is inside it. Nothing in WordPress protects a change you made to a theme you did not write. The fix is a child theme, described in the Theme Handbook's Child Themes page.
- Create a folder in
wp-content/themes, for examplegrand-sunrise. - Add a
style.csswith a file header. TheTemplate:field names the parent theme folder and must match it exactly, such asTemplate: twentytwentyfour. - Copy only the files you want to change into the child theme. A template of the same name in the child theme wins over the parent's.
- Activate the child theme. The parent can then update as often as it likes.
Three limits before you plan around this. There are no grandchild themes: the handbook says the hierarchy has exactly two levels. A child theme's style.css is not always loaded for you, so if the parent does not enqueue it, load it with wp_enqueue_style() in functions.php. And the handbook is honest that heavy customization inside a child theme becomes a management problem, and that forking into a full theme is sometimes the better call.
Above all of this sits a fourth layer: user edits in the database, which override the theme's theme.json, templates and patterns. If a template looks wrong and the files look right, clear the customization in the Site Editor before touching code.
Should you buy a template or build a custom theme?
Buy when a ready-made design fits your content and nobody needs to touch theme files. Build when the content does not fit a stock layout, or when the bought theme drags in plugins you would not otherwise install. I build custom WordPress themes for a living, so read the rest of this section knowing that.

In words: if no stock design fits your content, or you cannot live with the plugins a theme bundles, a custom theme is cheaper than fighting one. If a bought theme fits and nobody edits its files, change nothing and keep the updates. If files do get edited, a block theme keeps that work in the Site Editor and a classic theme needs a child theme.

A short checklist before you buy anything called a template:
- Is it a block theme, a classic theme, or an import that needs a page builder too?
- Which plugins does it require, and do they stay required after import?
- Can the demo content be removed cleanly?
- Is a child theme included, or will you be making one on day two?
- What happens to your edits when the seller ships an update?
A bought template is still a reasonable start for a small site. It gets expensive when a business grows into it: a shop with its own product logic, a few hundred pages, or a design the brand team already signed off. For the planning end of a replacement, see my website redesign guide; for AI inside the site itself, the WordPress AI agent guide.
What else do people ask about WordPress themes and templates?
Can you use a template without a theme?
No. A template is a file inside a theme, or a database entry that overrides one, so it has nothing to attach to on its own. Even a bought "template" that arrives as an importable zip needs an active theme, and in a block theme the minimum is a single index.html file.
Is a template kit the same as a theme?
No, and it is not a WordPress term at all. "Template kit" is marketplace language for a bundle of page-builder layouts that you import into a theme you already run, usually with a page builder and its own importer plugin. WordPress core has no such object: it has themes, templates, template parts and patterns.
Where are WordPress templates stored?
In three places, and WordPress checks them in this order: the database, where the Site Editor saves user edits; the active child theme's /templates folder; and the parent theme's /templates folder. Classic themes keep their PHP templates in the theme root or a first-level subfolder such as page-templates/.
Do I need a child theme to edit a template?
Not if you edit in the Site Editor, because those changes are stored in the database and survive theme updates. You need a child theme the moment you edit the theme's own files, including a classic theme's PHP, or the next update will overwrite your work.
Does changing the theme change my content?
No. Posts, pages and media stay in the database and come through to the new theme. What you lose is design work that was tied to the old theme: its templates, its template parts, widget placement, and anything a page builder stored in theme-specific settings.
If your site is stuck between a bought theme and what the business now needs, I build custom WordPress themes and block themes under WordPress services, and whole rebuilds as a design and build project, with a free scoping call of about 30 minutes and a written quote within one business day.
Last reviewed 5 December 2026. Disclosure: I build custom WordPress themes and sell WordPress development, so I am not neutral. I am CTO at ElySpace, a freelance developer for Marmaids LLC, and founder of WHMCSPilot and MagizAI. File names, folder names, hierarchy order, screen names and the version date come from the WordPress Theme Handbook, the WordPress.org documentation and the WordPress release archive as I read them on 5 December 2026.