Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

HEB Babies Banners

Para los sidebars de los banners por seccion y categoría

if ( ! function_exists( 'ads_places' ) ) {

// Register Sidebars
function ads_places() {

	$args = array(
		'id'            => 'banner_alimentarse_bien',
		'class'         => 'alimentarse_bien_ad',
		'name'          => __( 'Box Banner Alimentarse Bien', 'heb-babies' ),
		'description'   => __( 'Coloca aquí el banner de publicidad para la categoría Alimentarse bien.', 'heb-babies' ),
		'before_title'  => '<h3 class="banner_title">',
		'after_title'   => '</h3>',
		'before_widget' => '<div class="ad_banner boxbanner">',
		'after_widget'  => '</div>',
	);
	register_sidebar( $args );

	$args = array(
		'id'            => 'banner_crecer_sano',
		'class'         => 'crecer_sano_ad',
		'name'          => __( 'Box Banner Crecer Sano', 'heb-babies' ),
		'description'   => __( 'Coloca aquí el banner de publicidad para la categoría Crecer sano.', 'heb-babies' ),
		'before_title'  => '<h3 class="banner_title">',
		'after_title'   => '</h3>',
		'before_widget' => '<div class="ad_banner boxbanner">',
		'after_widget'  => '</div>',
	);
	register_sidebar( $args );

	$args = array(
		'id'            => 'banner_leaderboard',
		'class'         => 'leaderboard_ad',
		'name'          => __( 'Leaderboard en sitio', 'heb-babies' ),
		'description'   => __( 'Coloca aquí el Leaderboard para el sitio.', 'heb-babies' ),
		'before_title'  => '<h3 class="banner_title">',
		'after_title'   => '</h3>',
		'before_widget' => '<div class="ad_banner leaderboard">',
		'after_widget'  => '</div>',
	);
	register_sidebar( $args );

}
add_action( 'widgets_init', 'ads_places' );

}