By default, you can add up to 10 different Slides in the Homepage Slider for our Premium themes.
However, in some cases you may need to add even more Slides i.e. up to 20.
It will require some small code changes. Here all of the necessary steps:
- Install and Activate the WP Editor plugin:https://wordpress.org/plugins/wp-editor/It is a very useful plugin which allows you to edit files inside all of the theme folders:
- Navigate to Admin Panel -> Left Menu -> Appearance -> Theme Editor
- Open theme/inc/customizer.phpSearch for this text:
// Add slide settings
for ( $slideNumber = 1; $slideNumber <= 10; ++$slideNumber ) {and update it to:
// Add slide settings
for ( $slideNumber = 1; $slideNumber <= 20; ++$slideNumber ) {* The updated text is mared in bold.
Then save changes by clicking on the ‘Update File’ button
- Open theme/inc/utilities.php
Search for this text:
// display slides
for ( $i = 1; $i <= 10; ++$i ) {and update it to:// display slides
for ( $i = 1; $i <= 20; ++$i ) {* The updated text is mared in bold.
Then save changes by clicking on the ‘Update File’ button
- That’s all
Now navigate to Admin Panel -> Left Menu -> Appearance -> Customize -> Slider Section and you will be able to add up to 20 different slides: