New 24/7 monitoring and daily cloud backups now included in every Shield Pro plan.

Themes

How to switch a WordPress theme via FTP

Sometimes you cannot open Appearance → Themes because the active theme fatals on load. FTP and the database still let you switch to a default theme without reinstalling WordPress.

Time: 15-30 minutes Level: Intermediate

What this problem looks like

WordPress stores the active theme slug in the database. If that theme PHP is broken, every page can white-screen before you reach the admin themes screen.

Renaming the theme folder forces WordPress to fall back to a default theme that ships with core. You can then log in and pick a stable theme properly.

Back up wp-content/themes and the database before renaming folders. Custom child themes depend on the parent folder name staying correct.

Find the active theme folder name

Connect via SFTP and open wp-content/themes/. The active theme folder matches the stylesheet directory name, not always the pretty theme name shown in admin.

Alternatively open phpMyAdmin, select your database, and read the template and stylesheet values in wp_options where option_name is template or stylesheet.

Switch by renaming the theme folder

  1. Rename my-broken-theme to my-broken-theme.off.
  2. Keep a default theme folder such as twentytwentyfour untouched.
  3. Reload the site URL in a private window.
  4. WordPress should load the default theme automatically.

Switch via the database

When you prefer not to rename folders, update the template and stylesheet options directly.

sql
UPDATE wp_options SET option_value = 'twentytwentyfour' WHERE option_name = 'template';
UPDATE wp_options SET option_value = 'twentytwentyfour' WHERE option_name = 'stylesheet';
Replace wp_ with your real table prefix and twentytwentyfour with a theme folder that actually exists on disk.

Switch with WP-CLI

bash
cd /path/to/wordpress
wp theme list
wp theme activate twentytwentyfour

After you regain wp-admin

Open Appearance → Themes and activate the theme you want. If you use a child theme, activate the child, not the parent alone.

Review widgets, menus, and homepage settings. Theme switches often reset menu locations until you reassign them.

When to stop DIY and hire help

If the site still fails after a default theme loads, the problem may be plugin-related or database corruption. BugShield fixes theme and layout errors at a fixed price with direct developer chat.

FAQs

Will renaming the theme delete my content?

No. Posts, pages, and media stay in the database. Only presentation changes until you reactivate the original theme.

What if no default theme folder exists?

Download the latest WordPress zip, extract wp-content/themes/twentytwentyfour, and upload it via SFTP.

Can I switch themes on multisite?

Network-enabled themes are managed per site or network. Use the site dashboard Themes screen or WP-CLI with --url for the target site.

Why does the site look broken after switching?

Different themes use different page builders and widget areas. Reassign menus and rebuild the homepage template in the new theme.

Rather someone else fixed it?

Request a fix at a confirmed price. Named UK developer, secure Vault, direct chat.

Request a Fix