Guides › WordPress › Site down or error screens

WordPress Theme Broke the Site: Switch Back to a Default Theme Without Dashboard Access

After a theme change or update the site is broken or the dashboard is unreachable. Switch themes from the database or the files.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Site down or error page

A theme with a coding error can take down the whole site, including the dashboard.

Option 1: Rename the theme folder

  1. Open File Manager and go to wp-content/themes.
  2. Rename the active theme's folder, for example mytheme to mytheme-off.
  3. WordPress falls back to a default theme if one is installed (such as one of the "Twenty" themes). Make sure at least one default theme is in that folder.
  4. Reload the site and dashboard.

Option 2: Change the theme in the database

Open phpMyAdmin, then the table wp_options (the prefix may differ). Edit the rows where option_name is template and stylesheet and set both to the folder name of a default theme.

If you edited functions.php

A missing bracket or semicolon causes an instant fatal error. Open wp-content/themes/yourtheme/functions.php, undo your last change, and save. See our critical error guide.

Prevent it

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.