diff --git a/functions.php b/functions.php index 3af5968..85a13df 100644 --- a/functions.php +++ b/functions.php @@ -63,13 +63,13 @@ function roots_register_sidebars() { foreach($sidebars as $sidebar) { register_sidebar( array( - 'id'=> 'roots-' . strtolower($sidebar), - 'name' => __($sidebar, 'roots'), - 'description' => __($sidebar, 'roots'), + 'id' => 'roots-' . sanitize_title($sidebar), + 'name' => __($sidebar, 'roots'), + 'description' => __($sidebar, 'roots'), 'before_widget' => '
', - 'after_widget' => '
', - 'before_title' => '

', - 'after_title' => '

' + 'after_widget' => '', + 'before_title' => '

', + 'after_title' => '

' ) ); }