Return to Snippet

Revision: 30632
at August 18, 2010 19:08 by mixeyfd


Initial Code
function the_widgets_init() {
    if ( !function_exists('register_sidebars') )
        return;

   register_sidebar(array(
		'name' => __('Home sidebar', "wpbakery.com"),
		'before_widget' => '<div id="%1$s" class="widget %2$s">',
		'after_widget' => '</div><div class="clear">&nbsp;</div>',
		'before_title' => '<h2 class="widget_title">',
		'after_title' => '</h2>',
	));

}

add_action( 'init', 'the_widgets_init' );

Initial URL


Initial Description
Place this code into functions.php

Initial Title
Custom widget areas

Initial Tags


Initial Language
PHP