Start overridding footer widgets

This commit is contained in:
Oliver Davies 2019-03-27 18:21:37 +00:00
parent 585d907279
commit dd7b79f395
2 changed files with 38 additions and 0 deletions

View file

@ -1,3 +1,17 @@
<?php
wp_enqueue_style( 'style', get_stylesheet_uri() );
function tw_widgets() {
register_sidebar(
array(
'name' => 'Sidebar',
'id' => 'tw-sidebar',
'before_title' => '<h2 class="text-4xl font-bold text-gray-800">',
'after_title' => '</h2>',
'before_widget' => '<div class="mt-16 w-1/2 px-6">',
'after_widget' => '</div>',
)
);
}
add_action('widgets_init', 'tw_widgets');