Skip to main content

How to Switch to a Default WordPress Theme When You Cannot Open the Dashboard

If a theme conflict or a bug prevents you from accessing the WordPress dashboard, you can switch to a default WordPress theme by renaming the active theme's folder. This action restores access to the dashboard for a Site Administrator.

If a theme conflict or a bug prevents you from accessing the WordPress dashboard, you can switch to a default WordPress theme by renaming the active theme's folder. This action restores access to the dashboard for a Site Administrator.

Before you begin

You will need:

  • Site Administrator access

  • Access to your website's files via an FTP client or a File Manager (such as the one provided in your hosting control panel)

Switch to a default theme via file management

  1. Connect to your site's files using an FTP client or your hosting control panel's File Manager.

  2. Navigate to the directory where your themes are stored: wp-content/themes/.

  3. Locate the folder for your currently active theme.

  4. Rename the active theme's folder to include .old at the end (for example, rename twentytwentyfour to twentytwentyfour.old).

  5. Log in to your WordPress dashboard.

Note: Renaming the folder forces WordPress to recognize the current theme as missing. WordPress will then automatically fall back to the next available default theme.

Confirm the result

  • You can successfully log in to the WordPress dashboard.

  • The site displays a default WordPress theme (such as Twenty Twenty-Four).

  • The site remains online and accessible to visitors.

If you still cannot access the dashboard

If you still cannot access the dashboard after renaming the theme folder, the issue may be caused by a plugin conflict or a configuration error in your wp-config.php file.

  1. Check for plugin conflicts: Navigate to wp-content/ and rename the plugins folder to plugins_old. This deactivates all plugins. If the dashboard becomes accessible, one of your plugins is causing the error.

  2. Verify site URLs: Ensure the WP_HOME and WP_SITEURL constants in your wp-config.php file are correct.

Limitations

Once you have regained access to the dashboard, you will need to create a new theme or reinstall your preferred theme to restore your site's original design. This procedure only provides a way to bypass a broken theme to regain administrative access.

Did this answer your question?