Return to Snippet

Revision: 61500
at December 18, 2012 16:40 by xcsteve99


Initial Code
<?php
/**
 * Register our sidebars and widgetized areas.
 *
 */
function arphabet_widgets_init() {

	register_sidebar( array(
		'name' => 'Home right sidebar',
		'id' => 'home_right_1',
		'before_widget' => '<div>',
		'after_widget' => '</div>',
		'before_title' => '<h2 class="rounded">',
		'after_title' => '</h2>',
	) );
}
add_action( 'widgets_init', 'arphabet_widgets_init' );
?>




<?php 
if ( dynamic_sidebar('home_right_1') ) : 
else : 
?>
<?php endif; ?>

Initial URL
http://codex.wordpress.org/Widgetizing_Themes

Initial Description
Add First part to Functions.php

Add Second to where you want a smillcrobe

Initial Title
Widgetizing WP Themes

Initial Tags

                                

Initial Language
PHP