From b8445625e4cfe075d3376443bc4b91fb34d03688 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 28 Mar 2019 08:44:50 +0000 Subject: [PATCH] Inline function, update title styles --- wp-content/themes/twentynineteen-tailwindcss/functions.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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'); +});