esc_html__( 'Blog', 'blockchain-lite' ),
'id' => 'sidebar-1',
'description' => esc_html__( 'Widgets added here will appear on the blog section.', 'blockchain-lite' ),
'before_widget' => '',
'before_title' => '
',
) );
register_sidebar( array(
'name' => esc_html__( 'Page', 'blockchain-lite' ),
'id' => 'sidebar-2',
'description' => esc_html__( 'Widgets added here will appear on the static pages.', 'blockchain-lite' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__( 'Shop', 'blockchain-lite' ),
'id' => 'shop',
'description' => esc_html__( 'Widgets added here will appear on the shop page.', 'blockchain-lite' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer - 1st column', 'blockchain-lite' ),
'id' => 'footer-1',
'description' => esc_html__( 'Widgets added here will appear on the first footer column.', 'blockchain-lite' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer - 2nd column', 'blockchain-lite' ),
'id' => 'footer-2',
'description' => esc_html__( 'Widgets added here will appear on the second footer column.', 'blockchain-lite' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer - 3rd column', 'blockchain-lite' ),
'id' => 'footer-3',
'description' => esc_html__( 'Widgets added here will appear on the third footer column.', 'blockchain-lite' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer - 4th column', 'blockchain-lite' ),
'id' => 'footer-4',
'description' => esc_html__( 'Widgets added here will appear on the fourth footer column.', 'blockchain-lite' ),
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'blockchain_lite_widgets_init' );
function blockchain_lite_load_widgets() {
require get_template_directory() . '/inc/widgets/socials.php';
require get_template_directory() . '/inc/widgets/latest-post-type.php';
register_widget( 'CI_Widget_Socials' );
register_widget( 'CI_Widget_Latest_Post_Type' );
}
add_action( 'widgets_init', 'blockchain_lite_load_widgets' );