@husker: Aww, sorry about that. Okay, if you want to have more than 20 sliders, you’ll need to modify some code. The simplest way (not-recommended) to do is just edit the core theme file and increase the number. Since, while updating, you’ll lose the changes, you’ll need to make sure you do this change every-time you update the theme.
Other way is really tricky one, you’ll need to remove the current control and add a new one. Please add the following codes in you child theme’s functions.php
:
function catchresponsive_child_customize_register( $wp_customize ) {
$wp_customize->remove_control( 'catchresponsive_theme_options[featured_slide_number]' );
$wp_customize->add_control( 'catchresponsive_theme_options[featured_slide_number]' , array(
'active_callback' => 'catchresponsive_is_demo_slider_inactive',
'description' => __( 'Save and refresh the page if No. of Slides is changed (Max no of slides is 25)', 'catch-responsive' ),
'input_attrs' => array(
'style' => 'width: 45px;',
'min' => 0,
'max' => 25,
'step' => 1,
),
'label' => __( 'No of Slides', 'catch-responsive' ),
'priority' => '2.1.4',
'section' => 'catchresponsive_featured_slider',
'settings' => 'catchresponsive_theme_options[featured_slide_number]',
'type' => 'number',
)
);
}
function child_customzier() {
add_action( 'customize_register', 'catchresponsive_child_customize_register' );
}
add_action('init', 'child_customzier');
Note: This will make max-number of slides to 25, you can adjust it to your desired number in by changing the max value in the above code.
Regards,
Mahesh