Home / WordPress / Switch to a Default WordPress Theme Without Admin Access

Switch to a Default WordPress Theme Without Admin Access

Force WordPress to use a default theme when wp-admin is inaccessible by renaming the active theme or editing database options.

Views: 23 Unique: 19 Updated: 2026-03-18

What this problem is

You need to switch themes to recover the site, but you cannot access Appearance > Themes.

Why it happens

  • Active theme causes fatal error or white screen
  • Admin is inaccessible due to a theme conflict

Prerequisites

  • FTP/File Manager access (method A)
  • phpMyAdmin access (method B)
  • A default theme installed (twentytwentyfour recommended)

Diagnosis

If the site breaks immediately after a theme change, switching to a default theme is the fastest recovery step.

Detailed steps

Method A) Rename the active theme folder

  1. Go to wp-content/themes.
  2. Rename the active theme folder to theme-name.disabled.
  3. WordPress will auto-switch to an available default theme.

Method B) Change theme in the database

  1. Open {prefix}options in phpMyAdmin.
  2. Update template and stylesheet to the default theme folder name (example: twentytwentyfour).

Expected results

  • Site loads with the default theme and admin becomes accessible

What to do if it fails

  • Upload a default theme folder if none exists
  • Clear cache (plugin/server/CDN)

Best practices

  • Keep a default theme installed at all times
Back to category