- Step 1 - Open your database in phpMyAdmin
- Step 2 - Click wp_options
- Step 3 - Locate the theme in the table
- Step 4 - Replace the theme
- Step 5 - You're done!
Normally you manage your WordPress themes from the dashboard in wp-admin. In some cases this isn't possible, for example when you get a white screen after an update and are unable to login.
You can solve this by changing the active theme to a default theme from the database. After this you can login again to wp-admin and manage your site from there.
A default theme is the theme that was active when you first installed WordPress, for example twentysixteen.
Step 1 - Open your database in phpMyAdmin
Read our guide on how to access your database if you don't know how to do this.
Step 2 - Click wp_options
In the menu to your left, click wp_options to open the options table.
Note: The table can have different prefixes, in this example it is www_. If you have used the 1-click installer the prefix is usually the location of your WordPress site.
Step 3 - Locate the theme in the table
Find the rows called template and stylesheet. They are usually located on page 2 in the options table.
Step 4 - Replace the theme
- Click the field option_value for template
- Replace the current theme with a default theme, like twentysixteen.
- Press enter to save.
- Do the same for stylesheet.
Step 5 - You're done!
The theme is now changed and your website is accessible again and you can log in to your WordPress administration.
If this didn't solve your issue, you can try to manually disable your WordPress plugins.