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

Themes

Learn how to switch a WordPress theme via FTP.

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

Time: 15-30 minutes Level: Intermediate
Neil McNaught, founder of BugShield and WordPress author
Written by
Written by
Updated
Updated

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.

Find the active theme folder name

Connect via File Manager, SFTP, or FTP 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';

Switch with WP-CLI over SSH

Only run the commands below if you have SSH access to the server. They will not work inside File Manager.

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 confirmed fixed price with direct developer chat.

Questions answered

Switching a WordPress theme via FTP FAQs

Answers about restoring access, choosing a fallback theme, protecting customisations, and reversing a WordPress theme change safely.

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 File Manager, SFTP, or FTP.

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 over SSH.

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.

When should I switch a WordPress theme via FTP?

Use file access when a theme error blocks wp-admin and you need WordPress to fall back to another installed theme. Prefer the dashboard when it remains accessible.

Should I back up before renaming a WordPress theme folder?

Yes. Save the files and database, and record the exact original folder name so you can reverse the change without losing custom theme code.

What should I rename the active WordPress theme folder to?

Add a clear suffix such as .disabled. Do not delete the folder, and avoid changing the parent theme when the active theme is a child theme without checking both.

Which theme will WordPress use after the active theme is renamed?

WordPress normally falls back to an installed default theme. If none is available, upload a clean current default theme before disabling the broken one.

Will switching themes remove WordPress customisations?

Posts and media remain, but menus, widgets, templates, theme settings, and custom code may render differently. Keep the original theme files and database backup.

How do I restore the original WordPress theme after testing?

Return the folder to its exact original name, repair or replace the faulty files, then select the theme in wp-admin and retest the front end.

Would you rather a developer fixed it?

Request a fix at a confirmed price and speak directly with the BugShield developer working on your site.

Request a Fix