How to Add Extra Settings to Appearance/Customizer Sections homepage

I want to exactly add settings to the static_front_page section in the customizer Sections homepage, I wrote code in functions.php for that but it doesn't work.

my code in functions.php file:

function mytheme_customize_register($wp_customize) {
    $wp_customize-add_setting( 'homepage_heading', array(
        'capability' = 'edit_theme_options',
        'default' = ''
    ));

    $wp_customize-add_control( new WP_Customize_Control($wp_customize, 'homepage_heading_control', array(
        'label' = 'Homepage Heading',
        'section' = 'static_front_page ',
        'settings' = 'homepage_heading'
    ) ));
}

add_action('customize_register', 'mytheme_customize_register');

Topic theme-customizer homepage Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.