WordPress add fourth footer twentyeleven

Posted: April 26, 2012 in web

modify:

functions.php

add line 422

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>’,
) );

 

sidebar-footer.php

add line 44

<?php if ( is_active_sidebar( ‘sidebar-6’ ) ) : ?>
<div id=”fourth” class=”widget-area” role=”complementary”>
<?php dynamic_sidebar( ‘sidebar-6’ ); ?>
</div><!– #fourth .widget-area –>
<?php endif; ?>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s