dynamic_sidebar()函数用来支持自定义sidebar侧边栏,可以自定义Widget插件,比如为侧边栏添加最近文章,文章归档,最新评论,标签云,搜索框,类别,链接表等。
那么如何使用呢?
那么如何使用呢?
在主题的functions.php文件的尖括号内添加形如下面的语句:
register_sidebar(array(
‘name’ => ‘Sidebar’,
‘before_widget’ => ‘<div class=”widget-sidebar”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3 class=”widget-title”>’,
‘after_title’ =