get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; if ( isset( $wp_customize->selective_refresh ) ) { $wp_customize->selective_refresh->add_partial( 'blogname', array( 'selector' => '.site-title a', 'render_callback' => 'ajima_customize_partial_blogname', ) ); $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 'selector' => '.site-description', 'render_callback' => 'ajima_customize_partial_blogdescription', ) ); } /*Get default values to set while building customizer elements*/ $default_options = ajima_get_default_customizer_values(); /* Header Background Color*/ $wp_customize->add_setting( 'ajima_options[header_bg_color]', array( 'default' => $default_options['header_bg_color'], 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'ajima_options[header_bg_color]', array( 'label' => __('Header Background Color', 'ajima'), 'section' => 'colors', 'type' => 'color', 'priority' => 1, ) ) ); /*Load customizer options.*/ require_once get_template_directory() . '/inc/customizer/theme-options/page-loading-add.php'; require_once get_template_directory() . '/inc/customizer/theme-options/preloader.php'; require_once get_template_directory() . '/inc/customizer/theme-options/night-mode.php'; require_once get_template_directory() . '/inc/customizer/theme-options/topbar.php'; require_once get_template_directory() . '/inc/customizer/theme-options/header.php'; require_once get_template_directory() . '/inc/customizer/theme-options/front-page-banner.php'; require_once get_template_directory() . '/inc/customizer/theme-options/front-page-popular.php'; require_once get_template_directory() . '/inc/customizer/theme-options/front-page.php'; require_once get_template_directory() . '/inc/customizer/theme-options/general-setting.php'; require_once get_template_directory() . '/inc/customizer/theme-options/archive.php'; require_once get_template_directory() . '/inc/customizer/theme-options/read-time.php'; require_once get_template_directory() . '/inc/customizer/theme-options/single.php'; require_once get_template_directory() . '/inc/customizer/theme-options/pagination.php'; require_once get_template_directory() . '/inc/customizer/theme-options/footer-recommended.php'; require_once get_template_directory() . '/inc/customizer/theme-options/footer.php'; require_once get_template_directory() . '/inc/customizer/theme-options/theme-options.php'; // View Pro $wp_customize->add_section( 'pro__section', array( 'title' => '' . esc_html__( 'View PRO Version', 'ajima' ), 'priority' => 2, 'description' => sprintf( /* translators: %s: The view pro link. */ __( '
Take it to the next level. See the features below: