How does WordPress modify theme from the background database?

Source: Internet
Author: User
========================================================== =============================== Original blog, reprinted please declare the source of Electronic coffee (original id blue rock) ========================================================== ============================== when we configure theme in WordPress, the popular theme will be downloaded from the website, making your blog look cool. If theme you downloaded has a bug or a problem with the downloaded package, your web page cannot be accessed after installation. Sadly, you cannot change theme back on the web. We can only manually modify theme through the background database. The method is as follows: Open phpMyAdmin, select the corresponding database, and enter the query statement in the SQL text box to obtain the current theme.
Select * From wp_optionswhere option_name = 'template' or option_name = 'stylesheet 'or option_name = 'current _ theme ';


The result is as follows: we can change the corresponding field to our theme. The system comes with 'classic 'and 'default '. you can choose one. There are two methods. First, you can click the symbol on the left to manually modify it. Second, You can execute the SQL statement:

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 ';

Note: You may have deleted the built-in theme during optimization. Therefore, the new theme we set must be the same as the file name in the WP theme,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.