This repository has been archived on 2022-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
divi/includes/functions/sidebars.php
2021-12-07 11:08:05 +00:00

66 lines
2.2 KiB
PHP

<?php
function et_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Sidebar', 'Divi' ),
'id' => 'sidebar-1',
'before_widget' => '<div id="%1$s" class="et_pb_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Area', 'Divi' ) . ' #1',
'id' => 'sidebar-2',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Area', 'Divi' ) . ' #2',
'id' => 'sidebar-3',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Area', 'Divi' ) . ' #3',
'id' => 'sidebar-4',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Area', 'Divi' ) . ' #4',
'id' => 'sidebar-5',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Area', 'Divi' ) . ' #5',
'id' => 'sidebar-6',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Area', 'Divi' ) . ' #6',
'id' => 'sidebar-7',
'before_widget' => '<div id="%1$s" class="fwidget et_pb_widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="title">',
'after_title' => '</h4>',
) );
}
add_action( 'widgets_init', 'et_widgets_init' );