Loading

How to Change Your WordPress Theme Without Losing Content

By Manob Editorial ·

How to Change Your WordPress Theme Without Losing Content

To change a WordPress theme, back up the site, install the new theme under Appearance > Themes > Add New Theme, test it with Live Preview, then click Activate. Your posts, pages, media and users stay. Menus, widgets and theme-specific settings may need to be set up again, so plan time to fix them.

Switching themes takes a few clicks. The work is in what the old theme was doing for you. This guide separates what stays from what can break, then gives the steps in order. Installing from a zip is covered in how to install a WordPress theme manually. Updating a theme you keep is in how to update a WordPress theme, and building a safe customization layer is in WordPress child theme.

What stays and what can break when you change themes?

ItemAfter switching
Posts, pages, commentsStay. They live in the database, not the theme.
Media library, usersStay.
Plugins and their dataStay, though some plugins add theme-specific output that disappears.
MenusMenus stay, but menu locations belong to the theme and may need reassigning.
WidgetsCan move to an inactive area when the new theme has different widget areas.
Customizer settings (logo, colors, header)Saved per theme, so the new theme starts with its own values.
Theme shortcodesPrint as plain text such as [button] if the old theme registered them.
Custom post types and fields the old theme addedContent remains in the database but may disappear from the admin and the site.
Page-builder layoutsDepend on the builder plugin. A builder bundled with the old theme may stop working.
Edits in the old theme's filesStay in the old theme folder, not in the new theme.

The WordPress documentation describes a theme as a way to change how a site is displayed "without modifying the underlying software" (Appearance Themes Screen, read December 2026). That is the reason content survives. Anything the old theme added on top, such as shortcodes or post types, is where problems appear.

Step 1. Back up and record what the old theme does

Take a full backup of files and database. Then open the live site and write down, or screenshot, the pieces you rely on: menus and their locations, the widget areas in use, the home page layout and the contact form. Open Appearance > Customize (or Editor, on a block theme) and note the logo, colors and header settings. Search your pages for square-bracket shortcodes you do not recognize. These notes are your checklist for Step 5.

Step 2. Install the new theme

Go to Appearance > Themes > Add New Theme. For a free theme, search the directory and click Install. For a theme you bought, click Upload Theme, choose the zip and click Install Now. Do not click Activate yet. A purchased package often holds several files, and the installable theme is the zip with style.css at its top level; see our guide to what comes after you buy a template. Check the new theme's documentation for the plugins it needs.

Step 3. Test it with Live Preview

On Appearance > Themes, hover over the new theme and click Live Preview. The documentation says this gives "a preview of your site with your own, existing content." Click through your main pages, open the menu and scroll to the footer. For a block theme, the documentation adds that you can use Live Preview in the Site Editor before activating it, and says that if you want to test more thoroughly, you may still set up a test site. If the preview is blank, the documentation warns: do not activate the new theme without investigating further (Work with themes, read December 2026).

Preview tells you less than a staging copy does. If your host offers staging, make the switch there first, then repeat it live.

Step 4. Activate the theme

Pick a quiet time. On Appearance > Themes, click Activate under the new theme. The change applies immediately. Because of that, keep the old theme installed for now; switching back is one click if something is badly wrong.

Step 5. Fix what the switch changed

  1. Menus. Go to Appearance > Menus (or Editor > Navigation on a block theme). Assign each menu to a location in the new theme.
  2. Widgets. Go to Appearance > Widgets. Widgets from areas that no longer exist sit under Inactive Widgets. Drag them into the new areas.
  3. Customizer or Site Editor. Set the logo, colors and header again from your notes.
  4. Shortcodes. Search for the square-bracket codes you noted. Replace them with blocks, or install a plugin that supplies the same shortcodes.
  5. Custom content types. If a portfolio or testimonial section vanished, the old theme probably registered it. Install its companion plugin if there is one, or ask the vendor.
  6. Page-builder pages. Open one built page. If it shows raw code, install the builder plugin the pages need.
  7. Extras. Check the forms, search, 404 page, cart and checkout on a store, and a phone view.

If you had code edits in the old theme, move them to a child theme of the new one. The earlier guide on customizing a WordPress theme shows where each kind of change belongs.

How do you delete an old WordPress theme safely?

Wait a week or two, until the new theme has proven stable. Then go to Appearance > Themes, click the old theme to open Theme Details, and click Delete at the bottom right. The documentation is blunt: the theme's files and folders are completely deleted, "so if you have made any customizations to that Theme, they too will be deleted so please consider backing up before deleting." You cannot delete the active theme. Before you delete:

  • Download a copy of the old theme folder, including any file you edited.
  • Keep one default WordPress theme installed. If your active theme breaks, WordPress can fall back to it, and you can always switch to it from the dashboard.
  • Delete unused themes you never plan to use. Unused code is one more thing to keep updated.

When switching themes is not the right move

If you only dislike colors or fonts, change them in the Customizer or Site Editor instead. If the problem is that the theme is slow or old, check whether an update fixes it first. Changing themes on a busy store, a membership site or a site with heavy page-builder layouts can mean rebuilding pages, and for a large site that work can cost more than the new theme. A developer or a fixed-price service can handle it; see how to hire a WordPress developer or services. If you are moving from WordPress to static pages, or the reverse, read HTML templates vs WordPress themes first. When you are ready to choose, browse WordPress themes and templates and use the preview on each one.

Frequently asked questions

Will changing my WordPress theme delete my posts and pages?

No. Posts, pages, media and users are stored in the database, not in the theme. What can change is how they look, and any content type or shortcode the old theme supplied.

Can I change themes on a live site without downtime?

Activation is instant, so visitors see the change at once. To avoid visible problems, use Live Preview, or do the switch on a staging copy and repeat it live. Choose a low-traffic time.

Why are my widgets gone after switching themes?

They are usually under Inactive Widgets in Appearance > Widgets. The new theme has different widget areas, so drag each widget into its new place.

Why do I see shortcodes as plain text?

The old theme registered those shortcodes, and the new one does not. Install the companion plugin from the old theme if it has one, or replace the shortcodes with blocks.

Is it safe to delete unused themes?

Yes, once you have a backup and a working active theme. Keep one default WordPress theme installed as a fallback. Deleting removes the files for good.

Do I need a child theme when I change themes?

Only if you plan to edit the new theme's files. Setting colors and layout through the Customizer or Site Editor needs none. See how to create a child theme when you do.