我需要为一个主题注册一个侧边栏。我已将此代码添加到 functions.php 的末尾
<?php
include("widget.php");
function farad_widgets_init(){
register_sidebar(array(
'id' => 'sidebar-1',
'name' => 'left-sidebar',
'description' => 'farad' ,
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'farad_widgets_init' );
?>
添加代码后,wp-login.php 显示一个白屏。
有什么问题?