我在上注册了3个侧边栏widgets_init
register_sidebar(array(
\'name\' => esc_html__(\'Left Sidebar\',\'creatus\'),
\'id\' => \'left\',
\'before_widget\' => \'<div id="%1$s" class="widget %2$s">\',
\'after_widget\' => \'</div>\',
\'before_title\' => \'<div class="widget_title_holder"><h3 class="widget-title">\',
\'after_title\' => \'</h3></div>\',
));
// right sidebar
register_sidebar(array(
\'name\' => esc_html__(\'Right Sidebar\',\'creatus\'),
\'id\' => \'right\',
\'before_widget\' => \'<div id="%1$s" class="widget %2$s">\',
\'after_widget\' => \'</div>\',
\'before_title\' => \'<div class="widget_title_holder"><h3 class="widget-title">\',
\'after_title\' => \'</h3></div>\',
));
// lateral header sidebar
register_sidebar(array(
\'name\' => esc_html__(\'Lateral header sidebar\',\'creatus\'),
\'id\' => \'lateral-header-sidebar\',
\'before_widget\' => \'<div id="%1$s" class="widget %2$s">\',
\'after_widget\' => \'</div>\',
\'before_title\' => \'<div class="widget_title_holder"><h3 class="widget-title">\',
\'after_title\' => \'</h3></div>\',
));
当我第一次在干净的WP上激活主题时,会自动将6个小部件添加到
lateral-header-sidebar
http://prntscr.com/l9cx84
我是否以错误的方式注册了它们,或者为什么将它们添加到这个特定的侧栏而不是其他侧栏?
非常感谢您的帮助。