about
e-mailmailhomeIf you ever find yourself with a broken theme and can't even access the admin side of your wordpress blog, here's a quick way to get back on your feet. Simply run the following query from the command line or via a tool like phpMyAdmin UPDATE wp_options SET option_value = 'default' WHERE option_name IN ('template','stylesheet','current_theme'); [...]"/>
trademarks
Home > Programming > Recover WordPress from broken theme

Recover WordPress from broken theme

supportfeedprofile
search

If you ever find yourself with a broken theme and can't even access the admin side of your wordpress blog, here's a quick way to get back on your feet.

Simply run the following query from the command line or via a tool like phpMyAdmin

UPDATE wp_options SET option_value = 'default'
WHERE option_name IN ('template','stylesheet','current_theme');

(Make sure to select your wordpress database first, of course)

Sure. Your site looks like it was just setup 2 seconds ago, but at least now you can access all the GUI-licious tools of the WordPress Admin panel to fix whatever broke your theme.

Possibly Related posts:

  1. New WordPress Plugin: Youtube Feeder
  2. WordPress: Embed Youtube Feed With a Simple Shortcode
  3. Project Honey Pot WordPress Plugin
careers
  • http://twitter.com/alexweberis Alex Weber

    Worked as advertised! Since we're running on WP3 with multi-site enabled, I changed wp_options to wp_1_options .

    Thanks for the tip!

  • http://twitter.com/misterpuley Aaron Puley

    Added a blog to my Windows Home Server then broke the theme - fixed it now with this - thanks! http://bit.ly/9cy7mN

    • http://andrewensley.com/ Andrew

      You're welcome! Glad it helped.

blog