cleey
望着那一丝海线,若隐若现。落日下的海霞,数不尽的美,看不完的醉
wordpress修改侧边栏sidebar
wordpress的侧边栏钩子;
将下面的代码追加到你的function.php后面:
可以完成侧边栏的修改:


function testname{
register_widget( 'Twenty_Eleven_Ephemera_Widget' );

register_sidebar( array(
'name' => __( 'Main Sidebar', 'twentyeleven' ),
'id' => 'sidebar-1',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
'before_title' => '<div class="widget-title btn-info"><i class="icon-list icon-white sidebar-icon"></i>',
'after_title' => '</div>',
) );
}
add_action( 'widgets_init', 'testname' );


<< 上一篇 wordpress添加css,js 开关centos图形界面 下一篇 >>
文章标签
随意 | Created At 2014 By William Clinton | 蜀ICP备14002619号-4 |