File: /home/dwauav0tm6jp/hosted/gazzocpa_com/wp-content/themes/theme1429/includes/sidebar-init.php
<?php
function elegance_widgets_init() {
// Header Area
// Location: right before the navigation
register_sidebar(array(
'name' => 'Header Area',
'id' => 'header-sidebar',
'description' => __( 'Located at the top of pages.'),
'before_widget' => '<div id="%1$s" class="widget-header">',
'after_widget' => '</div>',
'before_title' => '<div class="title">',
'after_title' => '</div>',
));
// Content Area 1
// Location: at the top of the content
register_sidebar(array(
'name' => 'Content Area 1',
'id' => 'content-area-1',
'description' => __( 'Located at the top of the content.'),
'before_widget' => '<div id="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
// Content Area 2
// Location: at the bottom of the content
register_sidebar(array(
'name' => 'Content Area 2',
'id' => 'content-area-2',
'description' => __( 'Located at the bottom of the content.'),
'before_widget' => '<div id="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h1>',
'after_title' => '</h1>',
));
// Content Area 3
// Location: at the bottom of the content
register_sidebar(array(
'name' => 'Content Area 3',
'id' => 'content-area-3',
'description' => __( 'Located at the bottom of the content.'),
'before_widget' => '<div id="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h1>',
'after_title' => '</h1>',
));
// Secondary content
// Location: at the bottom of the content
register_sidebar(array(
'name' => 'Secondary content',
'id' => 'secondary-content',
'description' => __( 'Located at the bottom of the content.'),
'before_widget' => '<div id="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h1>',
'after_title' => '</h1>',
));
// Sidebar Widget
// Location: the sidebar
register_sidebar(array(
'name' => 'Sidebar',
'id' => 'main-sidebar',
'description' => __( 'Located at the right side of pages.'),
'before_widget' => '<div id="%1$s" class="widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
// Footer Area 1
// Location: at the bottom of pages
register_sidebar(array(
'name' => 'Footer Area 1',
'id' => 'footer-area-1',
'description' => __( 'Located at the bottom of pages.'),
'before_widget' => '<div id="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
// Footer Area 2
// Location: at the bottom of pages
register_sidebar(array(
'name' => 'Footer Area 2',
'id' => 'footer-area-2',
'description' => __( 'Located at the bottom of pages.'),
'before_widget' => '<div id="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
}
/** Register sidebars by running elegance_widgets_init() on the widgets_init hook. */
add_action( 'widgets_init', 'elegance_widgets_init' );
?>