diff --git a/wp-content/themes/twentynineteen-tailwindcss/functions.php b/wp-content/themes/twentynineteen-tailwindcss/functions.php index 03f669a..3554410 100644 --- a/wp-content/themes/twentynineteen-tailwindcss/functions.php +++ b/wp-content/themes/twentynineteen-tailwindcss/functions.php @@ -2,15 +2,21 @@ wp_enqueue_style( 'style', get_stylesheet_uri() ); +// override the widget styles for sidebar-1 +add_action('after_setup_theme', function () { + remove_action( 'widgets_init', 'twentynineteen_widgets_init' ); +}); + add_action('widgets_init', function () { register_sidebar( array( 'name' => 'Sidebar', - 'id' => 'tw-sidebar', - 'before_title' => '

', + 'id' => 'sidebar-1', + 'before_title' => '

', 'after_title' => '

', - 'before_widget' => '
', + 'before_widget' => '
', 'after_widget' => '
', ) ); }); + diff --git a/wp-content/themes/twentynineteen-tailwindcss/template-parts/footer/footer-widgets.php b/wp-content/themes/twentynineteen-tailwindcss/template-parts/footer/footer-widgets.php index 67a53d1..8f5e1be 100644 --- a/wp-content/themes/twentynineteen-tailwindcss/template-parts/footer/footer-widgets.php +++ b/wp-content/themes/twentynineteen-tailwindcss/template-parts/footer/footer-widgets.php @@ -7,14 +7,14 @@ * @since 1.0.0 */ -if ( is_active_sidebar( 'tw-sidebar' ) ) : ?> +if ( is_active_sidebar( 'sidebar-1' ) ) : ?>