updated footer to allow for widgets, updated css.
This commit is contained in:
@ -322,4 +322,63 @@ function melville_theme_options_page() { ?>
|
||||
<?php }
|
||||
|
||||
|
||||
|
||||
function twentyten_widgets_init() {
|
||||
|
||||
// Area 3, located in the footer. Empty by default.
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => __( 'First Footer Widget Area', 'twentyten' ),
|
||||
'id' => 'first-footer-widget-area',
|
||||
'description' => __( 'An optional widget area for your site footer.', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
)
|
||||
);
|
||||
|
||||
// Area 4, located in the footer. Empty by default.
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => __( 'Second Footer Widget Area', 'twentyten' ),
|
||||
'id' => 'second-footer-widget-area',
|
||||
'description' => __( 'An optional widget area for your site footer.', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
)
|
||||
);
|
||||
|
||||
// Area 5, located in the footer. Empty by default.
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => __( 'Third Footer Widget Area', 'twentyten' ),
|
||||
'id' => 'third-footer-widget-area',
|
||||
'description' => __( 'An optional widget area for your site footer.', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
)
|
||||
);
|
||||
|
||||
// Area 6, located in the footer. Empty by default.
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => __( 'Fourth Footer Widget Area', 'twentyten' ),
|
||||
'id' => 'fourth-footer-widget-area',
|
||||
'description' => __( 'An optional widget area for your site footer.', 'twentyten' ),
|
||||
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
||||
'after_widget' => '</li>',
|
||||
'before_title' => '<h3 class="widget-title">',
|
||||
'after_title' => '</h3>',
|
||||
)
|
||||
);
|
||||
}
|
||||
/** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */
|
||||
add_action( 'widgets_init', 'twentyten_widgets_init' );
|
||||
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user