Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Espacio para Widget Area

Este snippet crea un espacio para colocar un Widget. Insertando este código en cualquier página y sustituyendo id por el id del gw sidebar:

if ( ! function_exists( 'mm_widget_area' ) ) {

// Register Sidebars
function mm_widget_area() {

	$args = array(
		'id'            => 'wa_mm',
		'class'         => 'wa_mm',
		'name'          => __( 'Widget Area MM', 'mm_widget_area' ),
		'description'   => __( 'Widget Area creada por Miguel Morón para ubicar los widgets en esa posición.', 'mm_widget_area' ),
	);
	register_sidebar( $args );

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

}