• Not sure if this is the correct place to put this but I recently got my side bar to work using divs instead of the default lists.
    Here is the code I have in my functions.php…

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
      'before_widget' => '<div id="%1$s" class="widget %2$s">',
      'after_widget' => "</div>",
      'before_title' => '<h2>',
      'after_title' => "</h2>"
    ));
    
    ?>

    and here is what I have on my sidebar page…

    <div id="forumposts" class="welcome">
      <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    
      <?php endif; ?>
    </div>

    What I need to know is how to make the custom sidebars using this div method

  • The topic ‘Custom sidebars with divs’ is closed to new replies.