Close #992 - Move some Roots features into Soil
This commit is contained in:
24
lib/init.php
24
lib/init.php
@@ -23,3 +23,27 @@ function roots_setup() {
|
||||
add_editor_style('/assets/css/editor-style.css');
|
||||
}
|
||||
add_action('after_setup_theme', 'roots_setup');
|
||||
|
||||
/**
|
||||
* Register sidebars
|
||||
*/
|
||||
function roots_widgets_init() {
|
||||
register_sidebar(array(
|
||||
'name' => __('Primary', 'roots'),
|
||||
'id' => 'sidebar-primary',
|
||||
'before_widget' => '<section class="widget %1$s %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h3>',
|
||||
'after_title' => '</h3>',
|
||||
));
|
||||
|
||||
register_sidebar(array(
|
||||
'name' => __('Footer', 'roots'),
|
||||
'id' => 'sidebar-footer',
|
||||
'before_widget' => '<section class="widget %1$s %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h3>',
|
||||
'after_title' => '</h3>',
|
||||
));
|
||||
}
|
||||
add_action('widgets_init', 'roots_widgets_init');
|
||||
|
||||
Reference in New Issue
Block a user