get_stylesheet_directory_uri() . '/img/slider/arrow-left.png', 'arrowRight' => get_stylesheet_directory_uri() . '/img/slider/arrow-right.png', )); } add_action( 'wp_enqueue_scripts' ,'bloggly_enqueue_script',99); /* Removing old homepage sections */ function bloggly_remove_homepage_sections(){ remove_action('blogone_sections','blogone_blog_section',15); remove_action('blogone_header_inner_before','blogone_header_section_topbar', 5 ); } add_action('wp_head','bloggly_remove_homepage_sections'); /* Adding new chlid theme homepage sections */ // Slider Section if( ! function_exists('bloggly_blog_section') && function_exists('bc_init') ){ function bloggly_blog_section(){ get_template_part('template-parts/sections-homepage/section','blog'); } $section_priority = apply_filters( 'blogone_section_priority', 15, 'bloggly_blog_section' ); if(isset($section_priority) && $section_priority != '' ){ add_action('blogone_sections','bloggly_blog_section', absint($section_priority)); } } function bloggly_customize_remove() { global $wp_customize; $wp_customize->remove_section( 'header_above'); $wp_customize->remove_section( 'footer_background'); $wp_customize->remove_control('blogone_blog_column'); $wp_customize->remove_control('blogone_slider_style'); $wp_customize->remove_control('blogone_breadcrumb_bg_image'); $wp_customize->remove_control('blogone_breadcrumb_attachment'); $wp_customize->remove_control('blogone_breadcrumb_overlay'); $wp_customize->remove_control('blogone_breadcrumb_bg_color'); } add_action( 'customize_register', 'bloggly_customize_remove', 11 ); // Include customizer file get_template_part('inc/customizer/bloggly-customizer');