get_section( 'colors' )->description = __( 'Background may only be visible on wide screens.', 'beryl' ); $wp_customize->get_section( 'background_image' )->description = __( 'Background may only be visible on wide screens.', 'beryl' ); // Add postMessage support for site title and description. $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; // Rename the label to "Site Title Color" because this only affects the site title in this theme. $wp_customize->get_control( 'header_textcolor' )->label = __( 'Site Title Color', 'beryl' ); // Rename the label to "Display Site Title & Tagline" in order to make this option extra clear. $wp_customize->get_control( 'display_header_text' )->label = __( 'Display Site Title & Tagline', 'beryl' ); // Social links $wp_customize->add_section( new beryl_Customized_Section( $wp_customize, 'beryl_social_links', array( 'priority' => 300, 'capability' => 'edit_theme_options' ) ) ); $wp_customize->add_setting( 'beryl_fake_field', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'beryl_fake_field', array( 'label' => '', 'section' => 'beryl_social_links', 'type' => 'text' ) ); } add_action( 'customize_register', 'beryl_customize_register' ); if ( class_exists( 'WP_Customize_Section' ) && !class_exists( 'beryl_Customized_Section' ) ) { class beryl_Customized_Section extends WP_Customize_Section { public function render() { $classes = 'accordion-section control-section control-section-' . $this->type; ?>