Hi.
The markup is inherited from the sidebar that is replaced.
To change the markup directly for generated sidebars that does not replace other sidebars you can do this:
add_filter( 'dynamic_sidebar_params', function( $args ){
$option = get_option( 'smk_sidebar_generator', array() );
$generated = !empty( $option['sidebars'] ) ? $option['sidebars'] :array();
if( ! array_key_exists( $args[0]['id'], $generated ) )
return $args;
$new_args = array(
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
);
$new_args = wp_parse_args( $new_args, $args[0] );
$args[0] = $new_args;
return $args;
}, 99);
Add this code in theme’s functions.php or in a custom plugin.
Anyway in version 4.0 I’m going to include an admin panel with an option for this case.
Regards.