File: /home/dwauav0tm6jp/hosted/palmetto_old/wp-content/themes/palmettomain/includes/sidebar-init.php
<?php
function elegance_widgets_init() {
// 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>',
));
// Premium Services Widget
// Location: home page
register_sidebar(array(
'name' => 'Premium Services',
'id' => 'premium-services',
'description' => __( 'Located at the main pages.'),
'before_widget' => '<div id="%1$s" class="widget">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
// First Footer Widget Area
// Location: at the top of the footer, above the copyright
register_sidebar(array(
'name' => 'First Footer Widget Area',
'id' => 'first-footer-widget-area',
'description' => __( 'Located at the bottom of pages.'),
'before_widget' => '<div id="%1$s" class="widget-area">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
// Second Footer Widget Area
// Location: at the top of the footer, above the copyright
register_sidebar(array(
'name' => 'Second Footer Widget Area',
'id' => 'second-footer-widget-area',
'description' => __( 'Located at the bottom of pages.'),
'before_widget' => '<div id="%1$s" class="widget-area">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
// Third Footer Widget Area
// Location: at the top of the footer, above the copyright
register_sidebar(array(
'name' => 'Third Footer Widget Area',
'id' => 'third-footer-widget-area',
'description' => __( 'Located at the bottom of pages.'),
'before_widget' => '<div id="%1$s" class="widget-area">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
// Fourth Footer Widget Area
// Location: at the top of the footer, above the copyright
register_sidebar(array(
'name' => 'Fourth Footer Widget Area',
'id' => 'fourth-footer-widget-area',
'description' => __( 'Located at the bottom of pages.'),
'before_widget' => '<div id="%1$s" class="widget-area">',
'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' );
?>