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 · Info

Can You Switch Themes in WordPress without Losing Content? The Short Answer

Can You Switch Themes in WordPress without Losing Content? The Short Answer

Short answer

Yes. Switching themes does not delete posts, pages, media, comments or users, because they live in the database. You can lose theme settings, widget placements, menu locations, theme-only shortcodes and custom code, so back up and preview the new theme first.

Key takeaways

  • Posts, pages, media and users are never deleted by a theme switch.
  • Widgets, menu locations and Customizer settings may need redoing.
  • Theme-only shortcodes and post types can seem to disappear.
  • Move custom functions.php code into a plugin before switching.
  • Preview with Live Preview or a staging site first.
  • Switching back usually restores the old theme's settings.

Can you switch themes in WordPress without losing content?

Yes, switching themes never deletes your posts, pages, media, comments or users, because they are stored in the database, but you can lose theme-specific settings, widgets, menus placement, shortcodes and custom code.

This is the short answer most people need. Your core content is safe. WordPress keeps content and design separate on purpose, so you can change the look of a site without rewriting it.

What can change or seem to disappear is anything that belonged to the old theme rather than to WordPress itself. That is where careful preparation pays off.

What stays the same when you switch themes?

Everything stored in WordPress's database as content stays put: posts, pages, media files, categories, tags, comments, users, custom fields and plugin data.

Here is what is safe:

  • Posts and pages, including their text and images.
  • Media Library files in your uploads folder.
  • Categories, tags and custom taxonomies.
  • Comments and users.
  • Plugin settings and plugin features, such as forms, SEO data and WooCommerce products.
  • Menus themselves, though they may need assigning again.
  • Site settings such as your title, permalinks and reading settings.

Content written in the block editor is especially portable. Blocks are stored as standard markup in the post content, so they display under any theme that supports the block editor.

What can you lose when you switch themes?

You can lose theme options, Customizer settings, widget placements, menu locations, theme-only shortcodes, custom post types registered by the theme, and any code added to the old theme's files.

ItemWhat happens after switchingHow to protect it
Customizer settings (colours, logo, fonts)Not carried overNote or export them before switching
WidgetsMay move to inactive widgetsReassign under Appearance > Widgets
Menu locationsMenus exist but are unassignedReassign menus to new locations
Theme shortcodesShow as raw text like [button]Replace or move to a plugin
Theme custom post typesContent hidden from admin and front endRegister them in a plugin first
Code in functions.phpStops runningMove it to a plugin or child theme
Page builder bundled with themeLayouts may breakInstall the builder as a separate plugin
Featured image sizesImages may crop differentlyRegenerate thumbnails

The custom post type row is the one that scares people. If your old theme registered a Portfolio or Testimonials type, those items stay in the database but vanish from view. Reactivate the old theme or register the same post type in a plugin and they come back.

Does the theme's settings data get deleted?

No, WordPress keeps the old theme's settings in the database, so if you switch back, most of its Customizer options and theme mods return.

Theme modifications are stored per theme. That is why switching back usually restores your old logo, colours and layout choices.

This is useful as a safety net. If the new theme does not work out, you can reactivate the old one and recover most of the design. Deleting the old theme's files does not remove those settings either, though some themes clean up their own data when uninstalled.

If you want a record anyway, see how to export WordPress theme settings.

What should you do before switching themes?

Back up the site, write down your current settings, check for theme-only features, and test the new theme on a staging site or with Live Preview before activating it.

A simple pre-switch checklist:

  1. Take a full backup. Our guide on how to back up a WordPress site covers the options.
  2. Screenshot the current site on desktop and mobile, including the header, footer and key pages.
  3. List your widgets and menus and where they appear.
  4. Search content for shortcodes that belong to the theme.
  5. Check functions.php for custom code, such as tracking scripts or snippets.
  6. Note analytics and tracking codes added through theme options.
  7. Check for custom post types created by the theme.

Code from functions.php can usually move into a plugin such as Code Snippets so it keeps running whatever theme you use.

How do you preview a new theme safely?

Use Live Preview under Appearance > Themes to see the new theme with your content before activating it, or test the switch on a staging copy of your site.

The Themes screen documentation explains Live Preview. It shows your real content in the new design, and nothing changes for visitors until you click Activate.

For block themes, Live Preview opens the Site Editor so you can look around before committing.

A staging site is even safer, especially for busy sites or stores. You can switch, fix widgets and menus, and only push the changes when everything looks right. Our guide on setting up a staging site for WordPress shows how.

If the preview does not load, see WordPress theme preview not working.

What should you check after switching themes?

Reassign menus and widgets, set your logo and colours, scan key pages for broken layouts and shortcodes, and test on mobile and in search features like structured data.

After activation, work through:

  • Menus. Assign them to the new theme's locations, or rebuild the navigation block in a block theme.
  • Widgets. Move them from Inactive Widgets into the new areas in classic themes.
  • Branding. Re-add your logo, site icon, colours and fonts.
  • Homepage. Check Settings > Reading, since some themes expect a static front page.
  • Key pages. Look at your homepage, a post, a page, an archive, search results and a 404 page.
  • Images. Regenerate thumbnails if featured images look stretched or cropped.
  • Speed. A new theme can change page weight. Check Core Web Vitals on important pages.

Our step-by-step guide on how to change a WordPress theme covers this process in more detail.

Will switching themes hurt SEO?

Switching themes does not change your URLs or content, so rankings usually hold, but a slower theme, missing headings, lost schema or broken internal links can cause dips.

Search engines care about content, structure and user experience. The theme affects the last two.

Watch for these after a switch:

  • Heading changes. Some themes output post titles as H1 and others do not.
  • Lost schema. If the old theme added structured data, an SEO plugin may need to take over.
  • Page speed. Heavy themes can slow down your site.
  • Hidden content. Text inside theme-only tabs or sliders may disappear.
  • Breadcrumbs. Theme breadcrumbs may vanish if not provided by a plugin.

Keep the SEO plugin you already use, since its titles and meta descriptions stay in the database and work with any theme.

Is switching from a classic theme to a block theme different?

The content is still safe, but you will rebuild headers, footers, menus and widget areas in the Site Editor, because block themes do not use the Customizer or classic widgets in the same way.

Moving to a block theme is a bigger design change than swapping one classic theme for another. Your posts and pages carry over untouched.

What changes is how you edit the site's layout.

Headers and footers become template parts. Menus become navigation blocks. Widgets become blocks placed in templates.

It is worth doing on a staging site first so you can rebuild these parts calmly.

What if something goes wrong after switching?

Switch back to the old theme from Appearance > Themes, or by renaming the new theme's folder over FTP if you are locked out, and your old design and settings will return.

Because WordPress keeps each theme's settings, reverting is usually quick. If the new theme caused a fatal error and you cannot reach the dashboard, WordPress recovery mode or renaming the theme folder will force a fallback.

Our guide on fixing a theme that broke your site walks through recovery if you are stuck.

To avoid losing code in the future, keep custom changes in a child theme or a plugin rather than editing a theme directly.

The child themes chapter of the Theme Handbook explains how a child theme inherits its parent while keeping your changes separate.

Frequently asked questions

Will I lose my blog posts if I change my WordPress theme?

No. Blog posts are stored in the WordPress database, not in the theme, so they stay exactly as they are. Their appearance changes to match the new theme, and theme-specific shortcodes inside posts may need replacing, but the content itself is safe.

Why did my menu disappear after changing themes?

The menu still exists, but it is not assigned to a location in the new theme. Go to the menus screen or the Site Editor and assign it to the new theme's header or footer location. Block themes use a navigation block instead of classic menu locations.

Why do I see shortcodes like [button] after switching themes?

Those shortcodes were provided by your old theme. Once it is inactive, WordPress no longer knows how to render them and shows the raw text. Replace them with blocks, or install a plugin that provides the same shortcodes.

Can I switch themes on a live site without visitors noticing?

Use Live Preview to review the new theme with your content first, or make the switch on a staging copy and push it live when ready. Some sites also use a short maintenance window for the final switch and fixes.

Does deleting my old theme remove its settings?

Usually not. WordPress stores theme settings in the database, and they remain after the theme files are deleted. Some themes include cleanup routines that remove their data on uninstall, so keep a backup if you might return to the old theme.

Sources

  1. Appearance Themes Screen WordPress.org
  2. Child Themes WordPress Developer Resources
  3. Code Snippets WordPress.org
  4. Web Vitals web.dev

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.