Skip to content
WordPress Guide

How to Change Your WordPress Theme Without Losing Content

Switching theme does not delete your pages, but menus, widgets, theme settings and shortcodes need attention. Here is what carries over and a safe order of work.

A bright home office desk with a laptop and a monitor
8 sections · 7 min read
In this article · 8 sections

The new theme looks good in its demo. What stops you pressing Activate is a simple worry: what happens to everything else? Your pages, the menu, the footer text you spent an afternoon on, the contact form, the tracking code someone pasted in years ago.

The reassuring part first. When you change your WordPress theme, your content is not deleted. Pages, posts, images and users all stay in the database. What changes is how they are displayed, and a handful of settings that belonged to the old theme. This post sorts out which is which and gives you a safe order of work.

What survives when you change your WordPress theme

It helps to split the site into three piles before you start.

Carries over Usually needs redoing Can vanish from view
Pages, posts and media Which menu shows where (menu locations) Theme shortcodes, which show up as raw text in square brackets
Users, roles and passwords Widgets in sidebars and footers Portfolio, team or testimonial sections the theme created
Plugin settings, forms, SEO plugin data Customizer settings: header layout, colours, sometimes the logo Layouts built with the old theme’s own section tools
Core settings: site title, homepage, permalinks Additional CSS and Site Editor template changes Scripts pasted into the theme’s options panel

The menus themselves are kept. What is lost is their assignment to the new theme’s locations, so the header can suddenly show no menu at all. Widgets are similar: WordPress tries to match old widget areas to new ones, and anything it cannot place ends up under Inactive Widgets on the Widgets screen of a classic theme.

The third column needs the most attention. Content stored by a theme’s own feature, such as a portfolio post type, is normally still in the database, but nothing displays it once the theme is gone. If your admin menu has items like Portfolio or Testimonials that no plugin explains, they probably came with the theme.

Before you switch: a short checklist

  1. Take a full backup of files and database, and know how to restore it. Our guide to backing up a WordPress website covers the method.
  2. Screenshot the pages that matter: home, a service page, contact, a blog post, the header and footer on a phone. You will compare against these.
  3. Copy anything typed into the theme: footer text, Additional CSS, and any code in a “header scripts” or similar field in the theme options. Analytics or chat codes pasted there are a classic casualty of a theme change.
  4. Search your pages for shortcodes. Open the main pages in the editor and look for text in square brackets. Note which belong to the theme rather than a plugin.
  5. Write down your menu locations and which menu sits in each.
  6. Check the new theme supports what you use: WooCommerce if you sell online, your page builder if you have one, and any language you publish in.

Preview the new theme before activating it

WordPress lets you look before you commit. Go to Appearance → Themes, install the new theme if it is not already there, hover over it and choose Live Preview.

With a classic theme, the preview opens in the Customizer, showing your real content in the new design. With a block theme, recent versions open the Site Editor in preview mode instead. Either way, visitors see nothing new until you press the activate button in the preview (Activate & Publish in the Customizer, Activate & Save in the Site Editor).

A preview shows you far less than a proper test. Menus may be missing because locations are not assigned yet, and you cannot easily check forms or a shop checkout. Treat it as a first impression.

A safer route: switch on a staging copy

The calm way to switch theme is on a copy of the site where mistakes cost nothing. Many hosts offer one-click staging, and our article on using a WordPress staging site explains the options. Activate the new theme there, rebuild the header, footer and menus, fix the pages that look wrong, and only then repeat the change on the live site.

Avoid importing the new theme’s demo content on a live site to make it look like the screenshots. Demo imports can add pages, menus, widgets and images on top of yours. If you want the demo look, read our note on importing a theme demo first and try it on staging.

Switching on the live site, step by step

  1. Pick a quiet time for your business, not a Monday morning or the day a campaign starts.
  2. Go to Appearance → Themes and click Activate on the new theme. If you plan to use a child theme with it, activate the child theme instead.
  3. Reassign menus. On a classic theme, use Appearance → Menus and the Manage Locations tab. On a block theme, open the header in Appearance → Editor and check the Navigation block points to the right menu.
  4. Check widget areas or, on a block theme, the footer template part.
  5. Re-upload the logo and site icon if they did not carry over.
  6. Paste back your CSS and any scripts you copied earlier, in the new theme’s equivalent places.
  7. Go through your screenshots page by page, on a phone as well as a computer.
  8. Send a test message through every form, then clear any caching plugin and your host’s cache.

Featured images may look cropped differently, because each theme asks for its own image sizes. A thumbnail regeneration plugin can rebuild those sizes for existing images.

If it goes wrong, how to go back

Reactivate the old theme from Appearance → Themes. Customizer settings are stored separately for each theme, so the old theme’s settings are normally still there when you switch back. Site Editor changes made to an old block theme are kept the same way. Menu locations may need assigning again.

If the new theme breaks the site so badly that you cannot reach the dashboard, use your hosting file manager to rename the new theme’s folder inside wp-content/themes. WordPress then falls back to a default theme, if one is installed, and you can log in again. That is one reason to keep a default theme on the site.

Mistakes that make a theme change painful

  • Deleting the old theme on day one. Keep it, inactive, until you are sure nothing is missing.
  • Changing theme, plugins and content all in one go, so you cannot tell which change caused a problem.
  • Treating a theme change as a redesign. If you are rethinking pages and structure too, plan it as one, using our guide on how to redesign a website.
  • Forgetting the checks after launch: forms, mobile menu, footer links and analytics.

Choosing a theme in the first place, and what a theme does, are covered in our overview of how WordPress themes work. This post is part of our guide to managing a WordPress website.

Frequently asked questions

Will changing my theme hurt my Google rankings?

Not by itself, because your content and URLs stay the same. It can have an effect if the new theme changes heading structure, removes text, slows pages down or drops structured data the old theme added. Check the main pages after the switch and keep an eye on Search Console for the following weeks.

Can I switch theme while my online shop is taking orders?

You can, but it is the riskiest time to do it. Each theme styles the WooCommerce cart, checkout and account pages its own way, and a problem there costs real orders. Make the switch on staging first, then on live at your quietest hour, and place a test order straight afterwards to confirm checkout still works.

Do I have to rebuild my pages if I move from a classic theme to a block theme?

Usually not. Pages written in the block editor keep their content and mostly display fine. What you rebuild is the header, footer and site-wide styles, which move from the Customizer and widgets into the Site Editor. Pages built with a page builder stay as they are while that builder plugin remains active.

When is it safe to delete the old theme?

Once the new theme has run for a few weeks without surprises and you have checked every important page and form. Before deleting it, make sure nothing still depends on it, such as a child theme built on it or shortcodes in old posts. Keep a recent backup in case you find something missing later.

If the new theme is active but still does not look like your brand, our WordPress theme customization service can take it from there, working on a backup or staging copy where possible before anything reaches your live site.

Next in this series: WordPress Child Theme: Do You Need One, and How to Set It Up

Is Your Website Working Properly?

Get a free website health check from WebMaintor. We'll review your website's speed, security, forms, and technical health — and tell you exactly what needs attention.

No obligation. No automated reports. A real review by our team.