搜索热词

WordPress中文社区 > 专栏 > WP终身学习者 > WordPress主题开发中如果添加小工具

WordPress主题开发中如果添加小工具

发布于09月07日 被浏览 593 次
//开启侧边栏小工具
register_sidebar( array(
    'name' => __( '首页侧边栏', 'Bing' ),
    'id' => 'index_widget',
    'description' => __( '侧边栏的描述', 'Bing' ),
    'before_widget' => '<div class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<div class="listtop"><h2>',
    'after_title' => '</h2></div>'
) );
register_sidebar( array(
    'name' => __( '文章侧边栏', 'Bing' ),
    'id' => 'post_widget',
    'description' => __( '侧边栏的描述', 'Bing' ),
    'before_widget' => '<div class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<div class="listtop"><h2>',
    'after_title' => '</h2></div>'
) );

Related: live dragonfly larvae for sale, what is nominal range luminous range and geographical range, rn to paramedic bridge program michigan, bensonhurst police blotter, women's softball roster, merced school district spring break, whippits drug jail, massage therapy by erika, graze restaurant happy hour, shiseido vs tatcha, tpg capital owner, wrigley field concert refund, who is responsible for fallen tree removal, mike garrett wife, haymaker band politics,

点赞 收藏 打赏 分享
 
  1. 评论功能已经关闭!