Support » Themes and Templates » WordPress custom customizer api

  • Hi To All,
    I googled from last five hours. But not got answer. I want to add custom section in customize page of wp admin. I want to know how i can add two filed under same section.

    Like i want to add image upload filed and a text area below that image.

    Code Given Below :

    $wp_customize->add_section( ‘storefront_more’ , array(
    ‘title’ => __( ‘Sidebar Text’, ‘storefront’ ),
    ‘priority’ => 999,
    ‘description’ => __( ‘Upload image sidebar.’, ‘storefront’ ),
    ) );

    $wp_customize->add_setting( ‘storefront_more’, array(
    ‘default’ => null,
    ‘sanitize_callback’ => ‘sanitize_text_field’,
    ) );

    $wp_customize->add_control( new More_Storefront_Control( $wp_customize, ‘storefront_more’, array(

    ‘label’ => __( ”, ‘storefront’ ),
    ‘section’ => ‘storefront_more’,
    ‘settings’ => ‘storefront_more’,
    ‘priority’ => 1,
    ) ) );

    This code adding text filed but i want to add image upload field also under same section.


  • The topic ‘WordPress custom customizer api’ is closed to new replies.