add_panel('blog2019_main_options_panel', array( 'title' => esc_html__('Theme Options', 'blog2019'), 'priority' => 10, )); endif; $wp_customize->get_section( 'title_tagline' )->panel = 'blog2019_main_options_panel'; $wp_customize->get_section( 'title_tagline' )->priority = 20; $wp_customize->get_section( 'colors' )->panel = 'blog2019_main_options_panel'; $wp_customize->get_section( 'colors' )->priority = 40; $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_setting( 'background_color' )->transport = 'postMessage'; blog2019_header_options($wp_customize); blog2019_featured_content_options($wp_customize); blog2019_post_options($wp_customize); blog2019_footer_options($wp_customize); blog2019_other_options($wp_customize); } add_action( 'customize_register', 'blog2019_register_theme_customizer' ); function blog2019_customizer_js_scripts() { wp_enqueue_script('blog2019-theme-customizer-js', get_template_directory_uri() . '/inc/admin/js/customizer.js', array( 'jquery', 'customize-preview' ), NULL, true); } add_action( 'customize_preview_init', 'blog2019_customizer_js_scripts' );