get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->add_panel( 'bike_shop_options_panel', array( 'priority' => 5, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__( 'Theme Options', 'bike-shop' ) ) ); $wp_customize->add_panel( 'bike_shop_color_options_panel', array( 'priority' => 5, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__( 'Color Options', 'bike-shop' ) ) ); // add option to hide show page title and tagline $wp_customize->add_setting( 'show_blaze_title', array( 'default' => 1, 'sanitize_callback' => 'bike_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'show_blaze_title', array( 'type' => 'checkbox', 'label' => esc_html__( 'Show Site Title', 'bike-shop' ), 'description' => esc_html__( 'Check this checkbox to show Site Title', 'bike-shop' ), 'section' => 'title_tagline', ) ); // add option to hide show page title and tagline $wp_customize->add_setting( 'show_blaze_tagline', array( 'default' => 1, 'sanitize_callback' => 'bike_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'show_blaze_tagline', array( 'type' => 'checkbox', 'label' => esc_html__( 'Show Site Tagline', 'bike-shop' ), 'description' => esc_html__( 'Check this checkbox to show Site Tagline', 'bike-shop' ), 'section' => 'title_tagline', )); // END THEME OPTIONS } add_action( 'customize_register', 'bike_shop_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function bike_shop_customize_preview_js() { wp_enqueue_script( 'bike_shop_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true ); } add_action( 'customize_preview_init', 'bike_shop_customize_preview_js' ); /** Theme info page */ require get_template_directory() . '/inc/admin/customizer-upsell/theme-upsell.php';