• Hi. I want a seconday sidebar in my twentyten theme. I have added the code bellow to functions.php and sidebar.php and the sidebar appear. The proble now is that the sidebar is under each other and i want them next to each other, how can i do this ?

    Example image: https://www.dropbox.com/s/9z33z8jj0irlp6f/wordp.png?dl=0

    FUNCTIONS.PHP

    function add_my_sidebars(){
    register_sidebar( array(
    ‘name’ => ‘My sidebar’,
    ‘id’ => ‘my-sidebar’,
    ‘description’ => ‘Just a little description’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget-container %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3 class=”widget-title”>’,
    ‘after_title’ => ‘</h3>’,
    ) );
    } add_action(‘widgets_init’, ‘add_my_sidebars’);
    SIDEBAR.PHP

    `
    <?php if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
    <div id=”secondary” class=”widget-area” role=”complementary”>
    <?php dynamic_sidebar( ‘sidebar-1’ ); ?>
    <?php dynamic_sidebar(‘my-sidebar’); ?>

    </div><!– #secondary –>

    <?php endif; ?>

  • The topic ‘twentyten Seconday Sidebar’ is closed to new replies.