2011-02-27 131 views

回答

8

它在你的functions.php文件中定义。您可以轻松地通过传递正确的选项更改

if (function_exists('register_sidebar')) { 
     $opts = array(
     'name'   => 'IndexWidgets', 
     'before_widget' => '<div id="%1$s2" class="home_box %2$s">', 
     'after_widget' => '</div></div>', 
     'before_title' => '<h2>', 
     'after_title' => '</h2><div class="home_box_body">' 
    ); 
    register_sidebar($opts); 
} 

这是WordPress的抄本链接以供参考:http://codex.wordpress.org/Function_Reference/register_sidebar

相关问题