diff --git a/wp-content/themes/twentynineteen-tailwindcss/functions.php b/wp-content/themes/twentynineteen-tailwindcss/functions.php index 434e263..76e7068 100644 --- a/wp-content/themes/twentynineteen-tailwindcss/functions.php +++ b/wp-content/themes/twentynineteen-tailwindcss/functions.php @@ -2,16 +2,15 @@ wp_enqueue_style( 'style', get_stylesheet_uri() ); -function tw_widgets() { +add_action('widgets_init', function () { register_sidebar( array( 'name' => 'Sidebar', 'id' => 'tw-sidebar', - 'before_title' => '

', + 'before_title' => '

', 'after_title' => '

', 'before_widget' => '
', 'after_widget' => '
', ) ); -} -add_action('widgets_init', 'tw_widgets'); +});