diff --git a/inc/customizer.php b/inc/customizer.php new file mode 100644 index 0000000..ed4bb1b --- /dev/null +++ b/inc/customizer.php @@ -0,0 +1,21 @@ +get_setting( 'blogname' )->transport = 'postMessage'; + $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; + + include('customizer-titlebar.php'); + include('customizer-nav.php'); + include('customizer-colors.php'); + include('customizer-homepage-layout.php'); +} +add_action( 'customize_register', 'cs_customize_register' ); + +function cs_customize_preview_js() { + // Binds JS handlers to make Theme Customizer preview reload changes asynchronously. + wp_enqueue_script( 'cs_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true ); +} +add_action( 'customize_preview_init', 'cs_customize_preview_js' ); + +// hides the non-functional 'display Header text' checkbox. +define( 'NO_HEADER_TEXT', true ); +?> \ No newline at end of file