Support » Plugin: Kirki Customizer Framework » Need help to select controllers

  • Resolved andreikorzhyts

    (@andreikorzhyts)


    Hello, Aristeides.
    I need help to select right controllers for some settings.

    1. For select logo.

    $wp_customize->add_setting(
    			'blogika_site_identity_front_page_logo',
    			array(
    				'default'           => '',
    				'sanitize_callback' => 'esc_url_raw',
    			)
    		);
    
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'blogika_site_identity_front_page_logo', array(
    			'label'         => __( 'Front Page Logo', 'blogika' ),
    			'section'       => 'title_tagline',
    			'settings'      => 'blogika_site_identity_front_page_logo',
    			'button_labels' => array(
    				'select'       => __( 'Select logo', 'blogika' ),
    				'change'       => __( 'Change logo', 'blogika' ),
    				'remove'       => __( 'Remove', 'blogika' ),
    				'default'      => __( 'Default', 'blogika' ),
    				'placeholder'  => __( 'No logo selected', 'blogika' ),
    				'frame_title'  => __( 'Select logo', 'blogika' ),
    				'frame_button' => __( 'Choose logo', 'blogika' ),
    			),
    		) ) );

    2. For select background video.

    $wp_customize->add_setting( 'blogika_headers_front_page_header_background_video',
    			array(
    				'default'           => '',
    				'sanitize_callback' => 'esc_url_raw',
    			)
    		);
    
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'blogika_headers_front_page_header_background_video', array(
    			'label'     => __( 'Background Video', 'blogika' ),
    			'section'   => 'blogika_headers_front_page_header',
    			'mime_type' => 'video',
    		) ) );

    3. For select background image.

    $wp_customize->add_setting( 'blogika_headers_other_pages_header_background_image',
    			array(
    				'default'           => '',
    				'sanitize_callback' => 'esc_url_raw',
    			)
    		);
    
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'blogika_headers_other_pages_header_background_image', array(
    			'label'    => __( 'Background Image', 'blogika' ),
    			'section'  => 'blogika_headers_other_pages_header',
    			'settings' => 'blogika_headers_other_pages_header_background_image',
    		) ) );

    Thanks.

  • The topic ‘Need help to select controllers’ is closed to new replies.