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 –>