Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Guide

How to Remove Template From WordPress (Step by Step)

How to Remove Template From WordPress (Step by Step)

Short answer

First work out which template you mean. To stop a page using one, switch it to the default template in the editor sidebar, and to delete a custom block template, use Appearance, then Editor, then Templates. To remove a whole theme, activate another theme and delete the old one under Appearance, then Themes.

Key takeaways

  • WordPress uses the word template for page templates, Site Editor templates, theme files, builder templates and whole themes.
  • Switching a page to the default template removes it from that page without deleting anything.
  • Theme-supplied block templates cannot be deleted, only reset by clearing your customizations.
  • Delete Elementor templates from Saved Templates, and remove display conditions first.
  • Back up before deleting, then clear every cache layer to see the result.

What does removing a template in WordPress mean?

It depends on what template means on your site: a page template chosen in the editor, a custom template in the Site Editor, a theme's template file, an Elementor template, or the whole theme itself.

WordPress uses the word template for several different things. Each one is removed in a different place, so the first job is to work out which one you have.

Here is a quick map:

What you call a templateWhere it livesHow you remove it
Page or post templateTemplate setting in the editor sidebarSwitch the page back to the default template
Custom block templateAppearance > Editor > TemplatesDelete it, or clear customizations to reset it
Theme template fileA PHP or HTML file inside the theme folderDelete the file in a child theme, never the parent
Elementor or page builder templateTemplates > Saved TemplatesMove it to Trash and empty the trash
The whole themeAppearance > ThemesActivate another theme, then delete the old one

If you meant the whole design, jump to the section on themes. Our full guide on how to remove WordPress themes goes deeper on that case.

How do you check which template you are using?

Open the page in the editor, click the page title in the top bar or open the Page settings tab in the sidebar, and look at the Template field.

In block themes, the sidebar shows the template name, such as Pages, Single Posts or a custom name. In classic themes, a Template dropdown appears under page attributes when the theme offers more than one choice.

If a page builder is involved, the page may show Elementor Canvas or Elementor Full Width in that same field. Those are templates added by the builder, not by your theme.

Not sure which theme you are on? Look under Appearance > Themes. If you need to identify a theme on another site, see our guide on finding which WordPress theme a site uses.

Before you start: should you back up first?

Yes, take a full backup of files and database before deleting templates, because a deleted custom template or theme file is not always recoverable from inside WordPress.

Most hosts include backups in the control panel. A plugin backup works too.

Back up even for small changes. Removing the wrong template can blank a page layout or break your header and footer.

For risky edits on a live business site, try the change on a staging copy first.

Step 1: How do you remove a page template from a single page?

Open the page in the block editor, open the Template setting in the sidebar, choose the default template, then click Update or Save.

This does not delete the template from your site. It only stops that page using it, which is what most people actually want.

In classic themes, open Page Attributes in the sidebar, change the Template dropdown to Default template, and update the page.

To change many pages at once, go to Pages > All Pages, tick the pages, choose Edit from Bulk actions, and change the Template field there. The bulk edit screen supports a template change in many themes, but not all.

Step 2: How do you delete a custom template in the Site Editor?

Go to Appearance > Editor > Templates, find the custom template, open its options menu, and choose Delete, which removes templates you or a plugin created.

The WordPress Template Editor documentation explains how templates are created and assigned. Templates you made yourself can be deleted fully.

Any page that used a deleted custom template falls back to the theme's default template. Check those pages after deleting.

The Site Editor only exists in block themes. If you see Appearance > Customize instead of Appearance > Editor, you are on a classic theme. Our explainer on block themes vs classic themes covers the difference.

Step 3: How do you reset a theme template you customized?

Open the template in Appearance > Editor > Templates, open its actions menu, and choose Reset or Clear customizations to return it to the theme's original version.

You cannot delete a template that ships with the theme, such as Index or Single Posts. WordPress needs those to render content.

What you can do is throw away your changes. WordPress stores your edited version in the database, and resetting removes that saved copy so the theme file takes over again. The Learn WordPress lesson on editing templates shows the same workflow.

The wording of the menu item has changed between WordPress versions, so look for Reset or Clear customizations.

Step 4: How do you remove a theme template file?

Do not delete files inside a parent theme, because theme updates restore them and missing files can cause errors; instead, remove the override from your child theme or use a hook.

Theme template files, such as page-about.php or single.html, sit inside wp-content/themes. Edits there are lost on update.

If a child theme copies a template from the parent, deleting the copy in the child theme makes WordPress use the parent's version again. That is a safe way to remove a custom layout. Our guide on what a child theme is explains how overrides work.

Use SFTP or your host's file manager for this. The template hierarchy guide on developer.wordpress.org shows which file WordPress loads next once one is gone.

Step 5: How do you delete Elementor or page builder templates?

In Elementor, go to Templates > Saved Templates, hover the template, click Trash, then empty the trash to remove it for good.

Elementor's Templates menu help page describes where saved templates and Theme Builder parts are listed.

Templates used by Theme Builder parts, such as a header or footer, also need their display conditions removed. Otherwise you may see a gap where the header used to be.

Other builders work the same way. Divi has a Divi Library, and Beaver Builder has saved templates in its own menu.

If you are dropping the builder entirely, read our guide on removing Elementor safely first. Pages built with it can lose their layout once the plugin is gone.

For more on how Elementor's template library works, see our guide on using Elementor templates.

How do you remove a whole theme template?

Activate a different theme under Appearance > Themes, then open the old theme's details and click Delete, which removes its files from the server.

WordPress will not let you delete the active theme. You must switch first.

Keep one default WordPress theme installed, such as the current Twenty-something theme. WordPress falls back to it if your main theme breaks. The WordPress Themes documentation covers switching and deleting.

If you only want a fresh look, see our step-by-step guide on changing a WordPress theme before deleting anything.

What happens to your content when you remove a template?

Your posts, pages, media and products stay in the database; removing a template only changes how they look, not the content itself.

There are a few exceptions. Content stored in theme-specific shortcodes or page builder elements may show raw code or lose layout when the theme or builder is gone.

Widgets and menus are tied to theme locations. After a theme change, check Appearance > Menus or the Navigation block, and reassign them if needed.

Theme options stored in the Customizer are saved per theme. If you switch back later, many of those settings return.

What if your site breaks after removing a template?

Restore your backup, or reassign the default template, and clear every cache layer so you see the real current version of the site.

Blank pages or missing headers usually mean a page still points at a template that no longer exists. Open the page and select the default template again.

If you get a critical error, look at the error log your host provides, or turn on WP_DEBUG_LOG as described in the debugging guide on WordPress.org. Then restore the deleted file or switch to a default theme.

Also clear caching plugins and any CDN. Many the template is still showing reports are really cached pages. Our guide on clearing cache in WordPress lists each layer.

What is the safest way to clean up unused templates?

Remove them one at a time, starting with unused saved builder templates and custom templates, and test key pages after each removal.

A simple order works well:

  1. Back up the site.
  2. List the templates and note which pages use each one.
  3. Move pages to the default template where needed.
  4. Delete unused custom templates and saved builder templates.
  5. Delete inactive themes you do not plan to use, keeping one default theme.
  6. Clear caches and check the homepage, a post, a page and any shop pages.

Removing unused themes and plugins also shrinks your attack surface. Our guide on removing unused plugins and themes safely explains why that matters.

Frequently asked questions

Can I delete the default templates that come with my block theme?

No. Templates such as Index, Single Posts and Pages ship with the theme and WordPress needs them to show content. You can only reset them by clearing your customizations, which removes your edited copy from the database so the original theme version is used again.

Does removing a page template delete my page content?

No. Switching a page to the default template or deleting a custom template only changes the layout. The text, images and blocks stored in the page stay in the database. Content inside theme-specific shortcodes or builder elements may display differently, so check those pages afterwards.

Why is the old template still showing after I removed it?

Usually a cache is serving an older copy of the page. Clear your caching plugin, your host's server cache, any CDN, and your browser cache. If it still shows, open the page and confirm the Template setting now points to the default template.

How do I remove an Elementor template from my site?

Go to Templates, then Saved Templates in the dashboard, move the template to Trash, and empty the trash. If it is a Theme Builder header, footer or single template, remove its display conditions first so pages do not lose a section unexpectedly.

Is it safe to delete theme files with a file manager?

Only for files you added yourself, such as overrides in a child theme. Deleting files inside a parent theme is risky, because updates restore them and missing required files can cause errors. Back up first and prefer resetting templates from the dashboard.

Sources

  1. Template Editor WordPress.org
  2. How to edit templates via the Site Editor Learn WordPress
  3. Template Hierarchy WordPress Developer Resources
  4. Work with themes WordPress.org
  5. Debugging in WordPress WordPress Developer Resources
  6. Templates menu Elementor

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.