front page widget
if ( ! function_exists( 'frontpage_widget' ) ) {
// Register Sidebar
function frontpage_widget() {
$args = array(
'id' => 'frontpage-widget-1',
'name' => __( 'Frontpage Widget Area 1', 'text_domain' ),
'description' => __( 'An optional widget area.', 'text_domain' ),
'class' => 'frontpage-widget-1',
'before_title' => '<h6 class="widget-title">',
'after_title' => '</h6>',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
);
register_sidebar( $args );
}
// Hook into the 'widgets_init' action
add_action( 'widgets_init', 'frontpage_widget' );
}