From some reason my active_callback => 'is_front_page'
is not working and therefore not showing up inside the customizer on the front-page. I have definitely set my front page to static and selected the home page in the reading settings. I don't know what's wrong with it.
I appreciate the help :)
Code:
functions.php
// Customizer
function themeE4K_customize_register( $wp_customize ) {
// Add Settings
$wp_customize->add_setting('slider_one', array(
'default-image' => get_template_directory_uri() . '/assest/imgs/featureProducts/product1.png',
'transport' => 'refresh',
));
$wp_customize->add_setting('slider_two', array(
'default-image' => get_template_directory_uri() . '/assest/imgs/featureProducts/product1.png',
'transport' => 'refresh',
));
// Add Section
$wp_customize->add_section('slider_image', array(
'title' => __('Slider Images', 'e4k-theme'),
'description' => __('Slider Images for the Home Page of the E4K Theme'),
'priority' => 10,
'active_callback' => 'is_front_page',
));
// Add Controls
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slider_one_control', array(
'label' => __('Slider Image #1', 'e4k-theme'),
'section' => 'slider_image',
'settings' => 'slider_one',
)));
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'slider_two_control', array(
'label' => __('Slider Image #2', 'e4k-theme'),
'section' => 'slider_image',
'settings' => 'slider_two',
)));
}
add_action('customize_register', 'themeE4K_customize_register');
active_callback
function @GuruTom