Have you experience a situation that unable to access your wordpress blog both from frontend and backend (admin panel)?

In this case, either you need to change/fix my theme’s code. But, what if you are not a coder?

The solution is to change the currently active theme from database.

Use the below command to view the current theme.
===
SELECT * FROM wp_options WHERE option_name = ‘template’ OR option_name = ‘stylesheet’ OR option_name = ‘current_theme’;
===

Inorder to change the current theme, please change the “option_value” with your theme name.
Change option_value of the search result to ‘classic’ OR ‘default’. Classic and default are the default wordpress themes present at the time of wp installation.
====
UPDATE wp_options SET option_value = ‘default’ WHERE option_name = ‘template’;
UPDATE wp_options SET option_value = ‘default’ WHERE option_name = ‘stylesheet’;
UPDATE wp_options SET option_value = ‘default’ WHERE option_name = ‘current_theme’;
====

Please have try on this…..:)mysql (1)

Leave a Reply

Your email address will not be published. Required fields are marked *