0 entries in
Message', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new WP_Customize_Cropped_Image_Control( $wp_customize, 'light_logo_retina', array( 'label' => esc_html__( 'Light Logo (Retina version)', 'tripp' ), 'description' => esc_html__( 'A high-res version of the Light Logo (2x of the logo size).', 'tripp' ), 'section' => 'title_tagline', 'priority' => 8, 'height' => (int) $custom_logo_args[0]['height'] * 2, 'width' => (int) $custom_logo_args[0]['width'] * 2, 'flex_height' => $custom_logo_args[0]['flex-height'], 'flex_width' => $custom_logo_args[0]['flex-width'], 'button_labels' => array( 'select' => esc_html__( 'Select logo', 'tripp' ), 'change' => esc_html__( 'Change logo', 'tripp' ), 'remove' => esc_html__( 'Remove', 'tripp' ), 'default' => esc_html__( 'Default', 'tripp' ), 'placeholder' => esc_html__( 'No logo selected', 'tripp' ), 'frame_title' => esc_html__( 'Select logo', 'tripp' ), 'frame_button' => esc_html__( 'Choose logo', 'tripp' ), ), ) ) ); // Site Title Separator. $wp_customize->add_control( new Tripp_Customize_Separator_Control( $wp_customize, 'site_title_separator', array( 'section' => 'title_tagline', 'priority' => 8, ) ) ); /** * Adds postMessage support for site title and description for the Theme Customizer. */ $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists. $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; // @phpstan-ignore-line. Assume that this setting exists. $wp_customize->selective_refresh->add_partial( 'blogname', array( 'selector' => '.site-title a', 'render_callback' => 'tripp_customizer_get_site_name', ) ); } add_action( 'customize_register', 'tripp_customizer_register_site_identity_settings', 20 );