• I only have one sidebar currently and I want to add another sidebar to my theme. After reading from this source: Click Here I found that I do have a functions.php file but i need to know how to edit it for 2 sidebars. The code for the sidebar in my funtions file is:

    <?php if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<div class="sidebar-box">',
        'after_widget' => '</div>',
     'before_title' => '<h2>',
            'after_title' => '</h2>',
        ));

    Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Google search: dynamic sidebars wordpress.

    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'sidebar1',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h4>',
    'after_title' => '</h4>',
    ));
    register_sidebar(array('name'=>'sidebar2',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h4>',
    'after_title' => '</h4>',
    ));
    ?>
    Thread Starter dyakub

    (@dyakub)

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add another sidebar?’ is closed to new replies.