wordpress从数据库更换修改主题theme

/ 0评 / 1

1、打开phpMyAdmin,选择对应的数据库,在sql文本框中输入一下查询语句,我们就能得到当前的主题theme;
2、在sql中输入如下语句:
代码如下:

SELECT *
FROM wp_options
WHERE option_name = 'template'
OR option_name = 'stylesheet'
OR option_name = 'current_theme';

3、将对应的字段修改为系统自带的主题theme,这里有两种方法,
第一,我们可以点击左侧编辑符号进行手动修改,
第二,我们可以执行一下sql语句:
代码如下:

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

评论已关闭。