esc_html__( 'Homepage A', 'relia' ),
'id' => 'sidebar-front',
'description' => '',
'before_widget' => '
',
'before_title' => '
',
) );
register_sidebar( array(
'name' => esc_html__( 'Left Sidebar', 'relia' ),
'id' => 'sidebar-left',
'description' => '',
'before_widget' => '
',
'before_title' => '
',
) );
register_sidebar( array(
'name' => esc_html__( 'Right Sidebar', 'relia' ),
'id' => 'sidebar-right',
'description' => '',
'before_widget' => '
',
'before_title' => '
',
) );
register_sidebar( array(
'name' => esc_html__( 'Shop Sidebar', 'relia' ),
'id' => 'sidebar-shop',
'description' => '',
'before_widget' => '
',
'before_title' => '
',
) );
}
add_action( 'widgets_init', 'relia_widgets_init' );
function relia_main_width() {
if( is_active_sidebar('sidebar-left') && is_active_sidebar('sidebar-right') ) :
$width = 6;
elseif( is_active_sidebar('sidebar-left') || is_active_sidebar('sidebar-right') ) :
$width = 9;
else:
$width = 12;
endif;
return $width;
}
function relia_shop_width() {
if( is_active_sidebar('sidebar-shop') ) :
$width = 9;
else:
$width = 12;
endif;
return $width;
}
function relia_custom_css() { ?>