我使用bootstrap为边栏小部件创建面板,我可以设置小部件的容器标记以及面板标题的标记,但我无法为面板内容提供标记。到目前为止,我有:
register_sidebar(array(
\'name\' => __(\'Right Sidebar\'),
\'id\' => \'home_right_1\',
\'before_widget\' => \'<div class="panel panel-default">\',
\'after_widget\' => \'</div>\',
\'before_title\' => \'<div class="panel-heading"><h3 class="panel-title">\',
\'after_title\' => \'</h3></div>\'
));
引导面板需要如下所示:
<div class="panel panel-default">
<div class="panel-heading">Panel heading without title</div>
<div class="panel-body">
Panel content
</div>
</div>
如何添加“<;div class=“面板主体”>###</div>;\'到每个小部件?