Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter paulshack

    (@paulshack)

    Bolow is the content of my functions.php file I am trying to ad a 4th sidebar to footer
    Please can someone advise correct code, and also what I need to put in footer.php

    <?php

    register_sidebar( array(
    ‘name’ => __( ‘Footer Area Four’, ‘twentyeleven’ ),
    ‘id’ => ‘sidebar-6’,
    ‘description’ => __( ‘An optional widget area for your site footer’, ‘twentyeleven’ ),
    ‘before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => “</aside>”,
    ‘before_title’ => ‘<h3 class=”widget-title”>’,
    ‘after_title’ => ‘</h3>’,
    ) );
    if ( is_active_sidebar( ‘sidebar-6’ ) )
    $count++;

    $class = ”;

    switch ( $count ) {
    case ‘4’:
    $class = ‘four’;
    break;
    if ( is_active_sidebar( ‘sidebar-6’ ) ) : ?>
    <div id=”four” class=”widget-area” role=”complementary”>
    <?php dynamic_sidebar( ‘sidebar-6’ ); ?>
    </div><!– #fourth .widget-area –>

    Thread Starter paulshack

    (@paulshack)

    sorry 2 extra sidebars showing

    Thread Starter paulshack

    (@paulshack)

    I am showing 3 extra sidebars in back end and I can put widget into both, the widget shows up on the front end but under the 3 default sidebars with twenty eleven theme

    I need all 4 sidebars in a row with equal spacing across page

    Make sense?

    Paul

Viewing 3 replies - 1 through 3 (of 3 total)