Register Sidebar

PLACE BELOW CODE IN FUNCTION.PHP
<?php
$args = array(
			'name' => __( 'Sidebar name', 'theme_text_domain' ),
			'id' => 'unique-sidebar-id',
			'description' => '',
			'class' => '',
			'before_widget' => '<li id="%1$s" class="widget %2$s">',
			'after_widget' => '</li>',
			'before_title' => '<h2 class="widgettitle">',
			'after_title' => '</h2>');

register_sidebar( $args );
?>
TO DISPLAY SIDEBAR CONTENT PLACE CODE IN ANY PAGE.
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar name') ) : ?>
<?php endif; ?>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s