Howto reset your theme using an SQL query

If you’ve destroyed your WordPress blog somehow by switching to a theme that has bad code, here is a little trick I just found.

You’ll need to log into phpMyAdmin, or something similar and run this query on your database:

UPDATE wp_options SET option_value='default' WHERE option_name='template' OR option_name='stylesheet'

From there you can log in and set the theme to what it was before you destroyed your site.

Mjenn123

This is where you’ll find an amazing bio all about me when I get around to writing one.

Leave a Reply