Inline function, update title styles
This commit is contained in:
parent
cee2a38161
commit
b8445625e4
|
@ -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' => '<h2 class="text-4xl font-bold text-gray-800">',
|
||||
'before_title' => '<h2 class="text-4xl font-bold text-gray-800 mt-6 mb-4 tracking-tight">',
|
||||
'after_title' => '</h2>',
|
||||
'before_widget' => '<div class="mt-16 w-1/2 px-6">',
|
||||
'after_widget' => '</div>',
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action('widgets_init', 'tw_widgets');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue