get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; /*saved options*/ $options = acmephoto_get_theme_options(); /*defaults options*/ $defaults = acmephoto_get_default_theme_options(); /* * file for feature panel of home page */ require_once get_template_directory() . '/acmethemes/customizer/feature-section/feature-panel.php'; /* * file for header panel */ require_once get_template_directory() . '/acmethemes/customizer/header-options/header-panel.php'; /* * file for customizer footer section */ require_once get_template_directory() . '/acmethemes/customizer/footer-options/footer-panel.php'; /* * file for design/layout panel */ require_once get_template_directory() . '/acmethemes/customizer/design-options/design-panel.php'; /* * file for options panel */ require_once get_template_directory() . '/acmethemes/customizer/options/options-panel.php'; /* * file for options reset */ require_once get_template_directory() . '/acmethemes/customizer/options/options-reset.php'; /*removing*/ $wp_customize->remove_panel('header_image'); $wp_customize->remove_control('header_textcolor'); } add_action( 'customize_register', 'acmephoto_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function acmephoto_customize_preview_js() { wp_enqueue_script( 'acmephoto-customizer', get_template_directory_uri() . '/acmethemes/core/js/customizer.js', array( 'customize-preview' ), '1.1.0', true ); } add_action( 'customize_preview_init', 'acmephoto_customize_preview_js' );