21+ years in hosting · Jaipur, India · INR billing with 18% GST · 24/7 email support
Blog · WebJi® India

How to Change a WordPress Theme

Quick answer

Back up a self-hosted WordPress site, install and preview the replacement theme, then activate it under Appearance → Themes using an authorised account. Posts and media remain, but menus, widgets, CSS and theme-dependent features need checking. Keep the previous theme for rollback; child-theme database recovery uses different template and stylesheet directory values.

For WordPress owners changing presentation without losing access, overlooking theme-dependent features or confusing parent and child theme recovery settings.

✓ In business since 2005
✓ INR + GST billing
✓ 24/7 Email Support — avg reply < 60 min
GuideWebJi®
knowledge
Read time
5 min
Sections
7
Updated
14 Nov 2026
Written by
WebJi® team

What a WordPress theme change keeps

A theme change swaps layout files. It does not delete the content stored in the database. Posts, pages, comments, users and media-library records remain; uploaded media files stay in their existing storage. Plugins stay installed. The public site looks different because the new theme supplies its own header, footer, and templates.

What a WordPress theme change keeps
WhatAfter you change the WordPress theme
Posts, pages, media, comments, usersStay in the database
PluginsStay installed. A plugin built only for the old theme can stop rendering
MenusSaved. Assign them to the new theme locations
Widgets on a classic themeMove to Inactive widgets
Customizer and theme optionsTheme-specific; inspect whether the saved settings apply
Homepage built by the old themeCan fall back to the latest posts or the new front template
Shortcodes from the old themeCan show as plain text until you replace them

WordPress.com labels this screen Theme Showcase. A self-hosted site, including one on WordPress hosting, uses Appearance, then Themes. Activate changes which folder WordPress loads. It does not move your pages.

The clicks are the same for a default year theme or a niche design. Finding a theme, or detecting which theme another site uses, is a different job. Install the theme first, then activate it from Appearance, then Themes.

The theme versus plugin guide helps identify functions tied to the old presentation. Retaining plugin files does not guarantee that every integration continues to work with a replacement theme.

What to back up before you change a WordPress theme

Take a full backup before you click Activate. You need the WordPress files and a database export. Leave the current theme installed until the new layout is checked. Deleting it removes the way back.

In cPanel, follow how to take a full cPanel backup and download the archive before you switch. A copy that stays only on the same account does not help if that account is what breaks.

Copy homepage sections, footer text, and shortcodes that you cannot find in the page editor. Those pieces are not normal posts, so a theme change can drop them from the screen.

Also copy CSS from the old theme file. Additional CSS can be associated with the active theme, so preserve it and check its application after switching.

How to preview a WordPress theme before you activate it

Live Preview shows the new theme on your content without making it the theme visitors see. Close the preview and the public site is unchanged.

Use a staging copy when the plan includes one. Switch the theme there and fix menus before you touch the live site. Not every shared plan has that copy. Do not assume a one-click staging site.

If there is no staging copy, use Live Preview on the live site and keep the previous theme in the list.

The theme has to be installed before either check. If it is missing from Appearance, then Themes, follow how to install a WordPress theme and come back. Do not activate a folder that exists only on your computer.

How to activate a new WordPress theme

Activate only after the backup is downloaded and the theme is already in the list. You need an Administrator login.

  1. Log in with permission to switch themes. A Multisite network can restrict which themes a site administrator may use.
  2. Open Appearance, then Themes. Note which theme is marked Active, and leave that theme installed.
  3. Hover the new theme and click Live Preview. Check the home page, one post, and the menu. Close the preview if the layout is wrong. The live site has not changed.
  4. Hover the same theme and click Activate. If you use a child theme, activate the child, not the parent. The parent alone drops the child design.
  5. Open the public home page in a private window. A new header or type means this theme is live. Open one old post and confirm the text is still there.

On this self-hosted screen the Activate control is on the theme card. After it, a block theme opens Appearance, then Editor. A classic theme still uses Appearance, then Customize, for colours and Additional CSS.

What to fix after you change a WordPress theme

After you activate the theme, assign menus again, put widgets back, and check the homepage. The new layout can be correct while those three still look empty.

  • Menus: open Appearance, then Menus, then Manage Locations. Assign each saved menu to a location the new theme lists. An unassigned menu is not deleted.
  • Widgets: open Appearance, then Widgets. On a classic theme, old widgets sit under Inactive widgets. Drag back the ones you still want. A block theme may have no sidebar, so rebuild that text in a template part.
  • Homepage: open Settings, then Reading. If the home page became the latest posts, set it back to the static page you used before. Some themes also ship their own front template.

Re-check a form, the search box, and the checkout if the site sells. A missing menu location is a setting. A checkout that lost its layout can be a theme that does not support WooCommerce templates.

Custom CSS that lived in the old theme file does not come across. Paste the rules you saved into Additional CSS, then drop rules that target class names the new theme does not use.

How to fix a broken layout after a theme change

A broken layout after a theme change is usually cached CSS, a shortcode the new theme does not run, or a plugin that called a function in the old theme.

If a private window still shows the old appearance, confirm the active theme and examine caching before deciding the cause. Clear the cache plugin, then follow how to clear the WordPress cache, and reload. If the private window is already correct, the normal browser was holding the old CSS.

Shortcodes that print as bracketed text came from the old theme or its builder. The new theme does not run them. Replace that block with editor blocks, or activate the previous theme if you need the old page today.

A critical error, or a white screen, right after Activate is often that plugin conflict. Activate the previous theme from Appearance, then Themes. If wp-admin itself will not open, change the theme in the database before you rename plugins.

How to switch back to the previous WordPress theme

Activate the previous theme from Appearance, then Themes, if it is still installed. The old layout returns. Posts you published after the switch stay. You do not deactivate a theme as a separate step. Activating another theme is the switch.

If wp-admin will not load, change the active theme in the database. Open the database for this site in phpMyAdmin. In the options table, often named wp_options, use the prefix from wp-config.php. Find the rows named template and stylesheet.

For a normal standalone theme, template and stylesheet identify that theme’s directory. For a child theme, template identifies the parent directory and stylesheet identifies the child directory; do not set both to the child name. Save both rows, then reload wp-admin.

Use a folder that already exists on the account. A wrong name leaves WordPress pointing at a missing theme. Do not edit other option rows to change the theme.

If the previous theme still will not load, email support@webji.services with the domain. The mailbox is 24/7 in Hindi and English, and the average first reply is under 60 minutes. Do not use the office phone for a theme fault.

The WordPress switch_theme implementation derives the parent template separately from the selected stylesheet. Database edits bypass the normal switching process, so use them only as a backed-up recovery step and confirm the complete installation first.

FAQ

Frequently asked questions

Can I change a WordPress theme and keep my content?

Yes. Posts, pages, comments, users, and media stay in the database. Homepage sections, widget text, and shortcodes that lived only in the old theme can disappear from the screen. Copy those into a page before you activate.

How do I change my active WordPress theme?

Log in as an Administrator. Open Appearance, then Themes, hover the installed theme, and click Activate. Use Live Preview first. A private window on the home page should show the new layout, and an old post should still open.

Do menus and widgets stay when I change themes?

Menu items stay. Open Appearance, then Menus, then Manage Locations, and assign each menu to a location the new theme provides. On a classic theme, widgets move to Inactive widgets. Drag the ones you still want into the new areas.

How do I switch back to my old WordPress theme?

Keep the previous theme installed and activate it through WordPress when possible. For emergency database recovery, preserve the original options first: a child theme uses its parent folder for template and its own folder for stylesheet. Do not guess directory names.

Why does the site look broken after a theme change?

A cache can still send the old CSS. Clear the cache plugin and reload in a private window. If shortcodes show as plain text, the old theme supplied them. Replace those blocks, or activate the previous theme.

Last editorial update: 14 November 2026.

WebJi® since 2005

Ready to get started with WebJi®?

Join 12,000+ businesses across India and overseas. INR pricing, 18% GST shown before payment and 24/7 email support in Hindi and English — average first reply under 60 minutes.