get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; /*theme option panel details*/ require get_template_directory() . '/inc/customizer/theme-option.php'; // Register custom section types. $wp_customize->register_section_type( 'Blog_Expert_Customize_Section_Upsell' ); // Register sections. $wp_customize->add_section( new Blog_Expert_Customize_Section_Upsell( $wp_customize, 'theme_upsell', array( 'title' => esc_html__( 'Blog Expert Pro', 'blog-expert' ), 'pro_text' => esc_html__( 'Upgrade To Pro', 'blog-expert' ), 'pro_url' => 'http://www.themeinwp.com/theme/blog-expert-pro/', 'priority' => 1, ) ) ); } add_action( 'customize_register', 'blog_expert_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. * * @since 1.0.0 */ function blog_expert_customize_preview_js() { wp_enqueue_script( 'blog_expert_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true ); } add_action( 'customize_preview_init', 'blog_expert_customize_preview_js' ); function blog_expert_customizer_css() { wp_enqueue_script( 'blog_expert_customize_controls', get_template_directory_uri() . '/assets/twp/js/customizer-admin.js', array( 'customize-controls' ) ); wp_enqueue_style( 'blog_expert_customize_controls', get_template_directory_uri() . '/assets/twp/css/customizer-controll.css' ); } add_action( 'customize_controls_enqueue_scripts', 'blog_expert_customizer_css',0 );