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
- Go to
wp-content/themes. - Rename the active theme folder to
theme-name.disabled. - WordPress will auto-switch to an available default theme.
Method B) Change theme in the database
- Open
{prefix}optionsin phpMyAdmin. - Update
templateandstylesheetto 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