add_section('footer', array( 'title' => __('Footer Styling', 'medilab'), 'description' => sprintf(__('Options For Footer', 'medilab')), 'priority' => 7 )); // Setting and Control For Footer Background $footer_customize -> add_setting('footer_background_color', array( 'default' => '#333', 'type' => 'theme_mod', 'sanitize_callback' => 'esc_attr' )); $footer_customize->add_control( new WP_Customize_Color_Control( $footer_customize, 'footer_background_color', array( 'label' => 'Footer Background Color', 'section' => 'footer', 'settings' => 'footer_background_color', 'priority' => 2 ))); // Settings and Control For Footer Text $footer_customize -> add_setting('footer_text', array( 'default' => ('© Copyright Medilab. All Rights Reserved'), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_attr', )); $footer_customize -> add_control('footer_text', array( 'label' => __('Footer Text', 'medilab'), 'description' => 'Enter Your Footer Text Here.', 'section' => 'footer', 'priority' => 3 )); // Settings and Control For Footer Padding $footer_customize -> add_setting('footer_padding', array( 'default' => ('50px'), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_attr', )); $footer_customize -> add_control('footer_padding', array( 'label' => __('Footer Padding', 'medilab'), 'description' => 'Give your padding here. You can use the following units in padding : px, em, rem, vh and %. Use CSS padding here.', 'section' => 'footer', 'priority' => 2 )); // Setings and Control For Footer Font Size } add_action('customize_register', 'footer_customize'); ?>