wp-73k/src/sidebars.php

20 lines
414 B
PHP
Raw Normal View History

2019-05-23 12:30:31 -04:00
<?php
namespace WP_73k;
2019-05-23 12:30:31 -04:00
/**
* Register widget area.
*/
add_action( 'widgets_init', function () {
register_sidebar( [
'name' => esc_html( 'Sidebar' ),
'id' => 'sidebar',
'description' => '',
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4>',
] );
} );