Попробуйте вот так:
function sidebar(){
register_sidebar(
array(
‘name’ => ‘Pie de pagina’,
‘id’ => ‘footer’,
‘description’ => ‘Zona de Widgets para pie de pagina’,
‘before_title’ => ‘<p>’,
‘after_title’ => ‘</p>’,
‘before_widget’ => ‘<div id=»%1$s» class= «%2$s»>’,
‘after_widget’ => ‘</div>’,
)
);
}
add_action(‘widgets_init’, ‘sidebar’);