Call the Sidebar in Everywhere in the wordpress Template
<?php if ( ! dynamic_sidebar( 'sidebar-6' ) ) : ?>
<?php
the_widget( 'Twenty_Eleven_Ephemera_Widget', '', array( 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
?>
<?php endif; ?>
Register the Sidebar in the function.php file in wordpress
if (function_exists('register_sidebar'))
{
register_sidebar( array(
'name' => __( 'Customsidbar', 'twentyeleven' ),
'id' => 'sidebar-6',
'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );}
Thankyou All
Rao Mahender Singh
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.