进入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