<?php
$args = array(
'name' => 'Sidebar 1',
'id' => 'sidebar-1',
'description' => '',
'before_widget' => '<div id="%1$s" class="BlockContent %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>' );
if ( function_exists('register_sidebar') ) register_sidebar($args);
?>
<?php
$args = array(
'name' => 'Sidebar 2',
'id' => 'sidebar-2',
'description' => '',
'before_widget' => '<div id="%1$s" class="BlockContent %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>' );
if ( function_exists('register_sidebar') ) register_sidebar($args);
?>
in your 'old' sidebar.php, try:
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
and in sidebar-right.php, try:
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
u leave the existing line as it is,
and add a new
<?php get_sidebar('right'); ?>
Hiç yorum yok:
Yorum Gönder