1、打开phpMyAdmin,在sql中输入如下语句:
SELECT *
FROM wp_options
WHERE option_name = 'template'
OR option_name = 'stylesheet'
OR option_name = 'current_theme';
2、将对应的字段修改为系统自带的主题theme,注意,设置新theme需要和wordpress的wp-content/themes下主题theme文件名称保持一致,
在后台修改主题,报错,结果改不回去了
PHP Warning: Declaration of tree::widget($instance) should be compatible with WP_Widget::widget($args, $instance) in D:\freehost\bwbuying718\web\wp-content\themes\jumei\includes\widget.php on line 11 PHP Warning: Declaration of menu::widget($instance) should be compatible with WP_Widget::widget($args, $instance) in D:\freehost\bwbuying718\web\wp-content\themes\jumei\includes\widget.php on line 24 PHP Warning: Declaration of newp::widget($instance) should be compatible with WP_Widget::widget($args, $instance) in D:\freehost\bwbuying718\web\wp-content\themes\jumei\includes\widget.php on line 37 PHP Warning: Declaration of hotp::widget($instance) should be compatible with WP_Widget::widget($args, $instance) in D:\freehost\bwbuying718\web\wp-content\themes\jumei\includes\widget.php on line 50 PHP Warning: Declaration of randp::widget($instance) should be compatible with WP_Widget::widget($args, $instance) in D:\freehost\bwbuying718\web\wp-content\themes\jumei\includes\widget.php on line 63 PHP Warning: Declaration of tags::widget($instance) should be compatible with WP_Widget::widget($args, $instance) in D:\freehost\bwbuying718\web\wp-content\themes\jumei\includes\widget.php on line 77 PHP Warning: Declaration of help::widget($instance) should be compatible with WP_Widget::widget($args, $instance) in D:\freehost\bwbuying718\web\wp-content\themes\jumei\includes\widget.php on line 90 PHP Warning: Declaration of mall::widget($instance) should be compatible with WP_Widget::widget($args, $instance) in D:\freehost\bwbuying718\web\wp-content\themes\jumei\includes\widget.php on line 103
1、打开phpMyAdmin,在sql中输入如下语句:
SELECT *
FROM wp_options
WHERE option_name = 'template'
OR option_name = 'stylesheet'
OR option_name = 'current_theme';
2、将对应的字段修改为系统自带的主题theme,注意,设置新theme需要和wordpress的wp-content/themes下主题theme文件名称保持一致,