Sidebars can now have spaces in their names
This commit is contained in:
@@ -63,13 +63,13 @@ function roots_register_sidebars() {
|
|||||||
foreach($sidebars as $sidebar) {
|
foreach($sidebars as $sidebar) {
|
||||||
register_sidebar(
|
register_sidebar(
|
||||||
array(
|
array(
|
||||||
'id'=> 'roots-' . strtolower($sidebar),
|
'id' => 'roots-' . sanitize_title($sidebar),
|
||||||
'name' => __($sidebar, 'roots'),
|
'name' => __($sidebar, 'roots'),
|
||||||
'description' => __($sidebar, 'roots'),
|
'description' => __($sidebar, 'roots'),
|
||||||
'before_widget' => '<article id="%1$s" class="widget %2$s"><div class="container">',
|
'before_widget' => '<article id="%1$s" class="widget %2$s"><div class="container">',
|
||||||
'after_widget' => '</div></article>',
|
'after_widget' => '</div></article>',
|
||||||
'before_title' => '<h3>',
|
'before_title' => '<h3>',
|
||||||
'after_title' => '</h3>'
|
'after_title' => '</h3>'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user