esc_html__('Feature Widget', 'blog-mag'),
'id' => 'feature-widget',
'description' => esc_html__('Add widgets Below Slider.', 'blog-mag'),
'before_title' => '
',
));
}
add_action('widgets_init', 'blog_mag_widgets_init');
function blog_mag_remove_post_formats() {
add_theme_support( 'post-formats', array( 'image','aside') );
}
add_action( 'after_setup_theme', 'blog_mag_remove_post_formats', 11 );
function blog_mag_about_section( $wp_customize ) {
global $wp_customize;
$wp_customize->remove_section('theme_detail');
}
add_action( 'customize_register', 'blog_mag_about_section' );
function blog_mag_slider_section( $wp_customize ) {
global $wp_customize;
$wp_customize->remove_section('saraswati-blog-feature-category');
}
add_action( 'customize_register', 'blog_mag_slider_section' );
function blog_mag_child_style() {
$parent_style = 'parent-style';
wp_enqueue_style($parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style(
'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version') );
wp_enqueue_script( 'masonry' );
wp_enqueue_script('blog-mag-custom-masonary', get_stylesheet_directory_uri() . '/assets/js/custom-masonary.js', array('jquery'), '201765', true);
}
add_action( 'wp_enqueue_scripts', 'blog_mag_child_style' );
/**
* enqueue Admins style for admin dashboard.
*/
if ( !function_exists( 'blog_mag_admin_css_enqueue' ) ) :
function blog_mag_admin_css_enqueue($hook)
{
wp_register_script('blog-mag-page-widget-js', get_stylesheet_directory_uri() . '/assets/js/widget.js', array('jquery'), true);
wp_enqueue_media();
wp_enqueue_script('blog-mag-page-widget-js');
}
add_action('admin_enqueue_scripts', 'blog_mag_admin_css_enqueue');
endif;
/*Write here your own functions */
require get_stylesheet_directory() . '/inc/widget/fearure-widget.php';