进入wordpress后台,打开functions.php这个模板
在里面加入这段代码:
if ( function_exists('register_sidebar') )register_sidebar(array('before_widget' => '<div class="sidebox"> ','after_widget' => '</div>','before_title' => '<h2>','after_title' => '</h2>',));
参考:https://jingyan.baidu.com/article/8ebacdf0c02b5c49f65cd53a.html