WordPress.org

Ready to get started?Download WordPress

Forums

TYPEBASED 2ND SIDEBAR PROBLEM (1 post)

  1. wioym
    Member
    Posted 4 years ago #

    Hey there guys,
    I'm pretty new with php but with this TYPEBASED theme from woothemes, I can add a 2nd SIDEBAR, but for some reason it doesn't link the right style for it ( class & Id styles ).. Whatever widget i put on the 2nd sidebar shows up but the style isn't being called out and I'm pretty sure it has something to do with the sidebar-init.php that I don't seem to understand lol.

    <?php

    // Register widgetized areas

    function the_widgets_init() {
    if ( !function_exists('register_sidebars') )
    return;

    register_sidebar(array('name' => 'Sidebar','id' => 'sidebar-1','before_widget' => '<div id="%1$s" class="block widget %2$s">','after_widget' => '</div>','before_title' => '<h2>','after_title' => '</h2>'));

    }

    add_action( 'init', 'the_widgets_init' );

    ?>

    that's what it says.. anyway is there anybody can help me with this? I just want to be able to make a 2nd sidebar with the same styles and classes so I can have different widgets on the homepage and the other pages..

    Thanks in advance guys!!

Topic Closed

This topic has been closed to new replies.

About this Topic