---
title: "How to Change a WordPress Theme Safely (2026)"
description: "Change your WordPress theme step by step: back up, preview with Live Preview, activate, then fix the menus, widgets, CSS and layouts a switch leaves behind."
source: https://wpos.ai/blog/how-to-change-wordpress-theme/
updated: 2026-11-11
---

[Black Friday](https://wpos.ai/black-friday/): 15,000 free credits + 50% off ends Nov 30

# How to Change Your WordPress Theme Without Breaking Your Site

Switching themes takes one click, but some things don't come with you: menu locations, widgets, custom CSS and template edits. How to change themes safely, in order, and put back what moves.

- Themes

- Step by step

- 2026

## The short answer

**Go to Appearance > Themes, hover over the new theme, click Live Preview, then Activate.** Your posts, pages and media stay exactly where they are. What can move is everything tied to the old theme, so work in this order:

- Back up the site, files and database.
- Note your menus and widgets, copy your custom CSS, and move any code you added to theme files into a plugin.
- Try the new theme with Live Preview, or on a staging copy.
- Activate it.
- Reassign menus, put widgets back, paste your CSS, and check your key pages.

## What changes when you switch

**Content lives in the database, so a new theme doesn't touch it.** These are the parts that depend on the theme:

- **Menus.** On classic themes, menus sit in theme locations. WordPress [maps them to the new theme's locations](https://developer.wordpress.org/reference/functions/wp_map_nav_menu_locations/) where it can, but check Appearance > Menus > Manage Locations. Block themes use the Navigation block, whose menus are saved apart from the theme.
- **Widgets.** If the new theme has no matching widget area, WordPress [moves those widgets to Inactive Widgets](https://developer.wordpress.org/reference/functions/retrieve_widgets/) instead of deleting them.
- **Custom CSS.** Additional CSS is [saved per theme](https://developer.wordpress.org/reference/functions/wp_get_custom_css_post/), so the new theme starts without it. Copy it before you switch.
- **Site Editor changes.** Templates, template parts and styles you customized in a block theme belong to that theme. They stay with it, and come back if you switch back.
- **Theme extras.** Shortcodes, page templates, settings and custom content types that came with the old theme stop working. Pages set to a template the new theme lacks use its default template.
- **Images.** The new theme may use different image sizes. [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/) (1 million+ installs) rebuilds them for existing uploads.
- **Code in theme files.** Anything pasted into header.php, footer.php or functions.php, such as a tracking tag, disappears with the theme.

## 1. Back up and note what's theme-specific

**[Take a full backup first](https://wpos.ai/blog/how-to-backup-a-wordpress-site/),** from your host or a backup plugin, so you can undo the switch in minutes. Then write down, or screenshot, three things:

- Which menu sits in which location, under Appearance > Menus on a classic theme.
- Which widgets sit in which widget area, under Appearance > Widgets.
- Your custom CSS. Copy it into a text file.

If you added code to the current theme's files, move it into a plugin such as WPCode or into a [child theme](https://wpos.ai/blog/how-to-create-a-wordpress-child-theme/) of the new theme, so it survives the switch. Our guide to [editing the footer](https://wpos.ai/blog/how-to-edit-footer-in-wordpress/) covers where footer scripts belong.

## 2. Preview the new theme

**Install the theme from Appearance > Themes > Add New Theme,** choosing from the [8,878 themes in the WordPress directory](https://wordpress.org/themes/) or uploading a theme file. Then hover over it and click Live Preview. A classic theme opens in the Customizer; since WordPress 6.3, a block theme opens in the Site Editor. Visitors keep seeing your current theme until you click Activate.

Live Preview shows the design, not how the theme behaves with all your plugins and real content. For a business site, test on a staging copy first; many hosts create one in a click.

## 3. Activate, then put back what moved

- Click Activate.
- Reassign menus: Appearance > Menus > Manage Locations on a classic theme, or edit the Navigation block in the header on a block theme.
- Open Appearance > Widgets, find Inactive Widgets, and drag what you still need into the new theme's areas.
- Paste your custom CSS, and remove the rules the new theme no longer needs.
- Check the home page, a post, a page, your contact form and, if you sell, the checkout, on a phone as well as a desktop.
- If images look cropped or blurry, run Regenerate Thumbnails.

## Change the theme without wp-admin

**With WP-CLI, one command installs and activates a theme,** and another switches back to a default theme if the new one causes trouble:

`wp theme install theme-slug --activate
wp theme activate twentytwentyfive`Without WP-CLI or dashboard access, rename the active theme's folder in wp-content/themes over SFTP; WordPress falls back to a default theme if one is installed. Our guide to the [critical error message](https://wpos.ai/blog/wordpress-critical-error/) covers that recovery in detail.

## Where WPOS fits

**A theme switch is one click followed by a long checklist.** WPOS puts an agent inside wp-admin on the sites you already run, on any host, and it checks its own render with a browser screenshot before it reports done, so the checklist becomes one request:

> “After this theme switch, list the menus that lost their location and the widgets that ended up in Inactive Widgets, then screenshot the home, blog and contact pages on desktop and phone.”

WPOS is our product, so weigh this section accordingly; you can [try it free for 30 days](https://app.wpos.ai/signup?ref_page=how-to-change-wordpress-theme&ref_cta=body-cta) with 5,000 credits, a live site plus a staging sandbox, and no card.

## Frequently Asked Questions

**Will I lose content if I change my WordPress theme?**

No. Posts, pages, media and users stay in the database. What changes is how they look, plus theme-specific parts such as widget placement, menu locations, custom CSS and shortcodes.

**How do I preview a theme without activating it?**

Use Live Preview on Appearance > Themes. For a full test with your plugins and content, use a staging copy of the site.

**What happens to my widgets when I switch themes?**

Widgets in areas the new theme doesn't have move to Inactive Widgets under Appearance > Widgets. Drag them into the new theme's widget areas.

**Do I need to set up my menus again?**

Often not: WordPress maps menu locations from the old theme where it can. Check Appearance > Menus > Manage Locations on a classic theme; block themes use the Navigation block.

**Can I switch back to my old theme?**

Yes, as long as you don't delete it. Reactivating it brings back its Customizer settings, custom CSS and Site Editor changes.

**Will changing themes affect SEO?**

Your URLs and content stay the same, but headings, speed and structured data can change with the theme. Check key pages, test speed, and watch Search Console for a few weeks.

**Black Friday**ends Nov 30

## Start free with 15,000 credits.

Three times the usual 5,000, no card needed. Then 50% off your site licences for 2 months with FRIDAY50.

## One click to switch. One request to check it.

WPOS puts an AI agent inside wp-admin on the sites you already run, on any host, and it checks its own work. Free for 30 days: 5,000 credits, a live site plus a sandbox, no card.

[Claim 15,000 credits](https://app.wpos.ai/signup?ref_page=how-to-change-wordpress-theme&ref_cta=prefooter-cta): Start free
