Skip to content
ThemesIonic — home
WordPress Tutorials

How to Change a WordPress Theme

Switch WordPress themes safely with a staging checklist for templates, menus, widgets, custom CSS, tracking, WooCommerce and post-launch testing.

5 min read beginner

Quick answer: back up the site, clone it to staging, install the new theme without activating it on production, and test representative URLs. Record menus, widgets, templates, tracking code and custom CSS. Activate on production only after the staging version passes the checklist below.

Changing a theme does not delete ordinary posts, pages or media. The risk is presentation and theme-specific functionality: a new theme may use different menu locations, template parts, image sizes, widget areas or proprietary blocks.

1. Take an inventory before changing anything

Do not rely on memory. Record the current site with screenshots and a short spreadsheet.

Include:

  • homepage, post, page, archive, search and 404 layouts;
  • header, footer and mobile navigation;
  • active menus and their assigned locations;
  • sidebar and footer widgets;
  • code added to the theme or Customizer;
  • analytics, advertising and verification snippets;
  • custom post types and plugin-generated content;
  • WooCommerce shop, product, cart, checkout and account screens;
  • current performance and Core Web Vitals measurements.

View page source on important templates and save their title, meta description, canonical, robots and structured-data output. This gives you a concrete SEO comparison after the switch.

2. Make a restorable backup

Back up both the database and files. Confirm where the backup is stored and how to restore it; a success notice is not the same as a tested recovery path.

Keep the old theme installed until the redesign is stable. Do not edit or delete the production theme as part of the switch.

3. Build and test on staging

Use the host’s staging feature or a separate protected installation. Prevent public indexing with authentication and a noindex response; do not rely only on robots.txt for privacy.

Copy production to staging, then install the candidate using How to Install a WordPress Theme. Activate it only on staging.

If the theme offers demo import, avoid applying it to a copy containing real content until you understand what it creates. Demo imports can add pages, menus, images and plugin dependencies that later need manual cleanup.

4. Identify theme-dependent content

Search pages and posts for shortcodes, blocks or widgets supplied by the old theme. After activation they may become visible shortcode text, “unsupported” blocks or empty areas.

Also review:

  • custom post types registered by the theme;
  • theme-specific page builder modules;
  • portfolio, testimonial or slider content;
  • header and footer scripts stored in theme options;
  • PHP snippets added directly to functions.php;
  • schema or breadcrumbs previously generated by the theme.

Business functionality should be moved to an appropriate maintained plugin or custom site plugin before the old theme is removed. Presentation belongs in the theme; durable content and behavior should not.

5. Rebuild templates and global styles

For a block theme, open Appearance → Editor and review templates, template parts, Styles and Navigation. For a classic theme, use Appearance → Customize and the theme’s documented settings.

Recreate the design intentionally rather than copying every old option. Check:

  • content and wide widths;
  • typography and link contrast;
  • heading hierarchy;
  • featured-image ratio;
  • header and footer behavior;
  • responsive spacing;
  • focus states and keyboard navigation.

Custom CSS associated with the old active theme may not automatically apply to the new one. Copy only rules that still match the new markup, then use the methods in our Custom CSS guide.

6. Verify navigation, widgets and homepage settings

Menus are stored in WordPress, but themes register different display locations. Reassign each menu or rebuild the Navigation block. Test dropdowns with a keyboard and on a narrow screen.

Classic-theme widgets can move to an inactive widgets area when the new theme has different sidebars. Copy the content you need into the new layout rather than repeatedly switching themes to retrieve it.

Confirm Settings → Reading still points to the correct static homepage and posts page.

7. Test real content and functionality

Do not test only the homepage. Choose examples that stress the design:

  • a long post with tables, lists, quotes, images and code;
  • a short page with little content;
  • category and pagination pages;
  • search results and a missing URL;
  • contact, login and password-reset flows;
  • products with variations and sale prices;
  • cart and checkout on mobile.

Check common browser widths and at least one real phone. Use an incognito window to test as a logged-out visitor.

8. Protect URLs and search signals

A visual redesign rarely requires URL changes. Keep existing permalinks, internal links and canonical URLs stable. If a URL must change, map it directly to the closest replacement with one 301 redirect.

Compare the old and new output for:

  • one clear H1 per page;
  • title and meta description;
  • canonical and robots directives;
  • Article, Breadcrumb or product schema;
  • image alternative text;
  • crawlable pagination and navigation;
  • content that might now be hidden behind JavaScript or tabs.

Submit no new sitemap merely because colors changed. If URLs are unchanged, verify that the existing sitemap remains valid.

9. Plan the production switch

Choose a low-traffic period and pause editorial or store changes long enough to avoid overwriting new data when staging is deployed. The exact deployment method depends on the host: many staging tools copy the entire database, which is dangerous for active stores and membership sites.

Immediately after activation:

  1. Assign menus and verify the homepage.
  2. Clear WordPress, server and CDN caches.
  3. Test the homepage and several deep URLs while logged out.
  4. Submit a form and complete a test order if applicable.
  5. Confirm analytics and consent controls.
  6. Inspect application and PHP logs.
  7. Re-run performance and structured-data checks.

Monitor 404s, search visibility, conversions and support messages for at least several days. Keep the old theme and backup available during that period, then remove obsolete themes and plugins once rollback is no longer needed.

If edits appear correct in wp-admin but not on the frontend, use WordPress Changes Not Showing before redoing the design.

Frequently asked

No. Posts, pages, media and users remain in the database. However, the new theme can display them differently, and content created with theme-specific shortcodes or blocks may need repair.
It can if the redesign changes URLs, headings, internal links, structured data, content visibility or performance. Keep URLs stable and compare important templates before and after launch.
Usually yes, provided the old theme remains installed and compatible. A database and files backup is still important because theme options and supporting plugins may change during the redesign.

Related guides