Blog / Añadiendo Widgets a nuestro tema

Paso 1) Añado a functions.php la capacidad de mostrar una barra nueva:if ( function_exists('register_sidebar') ){
register_sidebar(array(
'name' => 'my_mega_menu',
'id' => 'my_mega_menu',
'before_widget' => '

‘,
‘after_widget’ => ‘

‘,
‘before_title’ => »,
‘after_title’ => »,
));
}
Paso 2) Añado en cualquier PHP de los que forman mi pagina, el código necesario para que se muestre mi arra personalizada:dynamic_sidebar('my_mega_menu'); Mas infoPlugin para hacer que un widget se pueda incrustar como shortcode:http://wordpress.org/extend/plugins/widget-shortcode/[widget id="my_mega_menu" before_widget="" after_widget="" title="0"]Plugin para que se puedan usar shortcodes dentro de un widget texto:http://wordpress.org/extend/plugins/shortcodes-in-sidebar-widgets/