Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi all,
is there any code for modifying the number of slides on Venture Theme Homepage? The default is 3 sliders,I was hoping to add at least 2-3 more slides any help would be greatly appreciated.
Many thanks
Solved! Go to the solution
This is an accepted solution.
Hi, @MajMae!
My name is Lilith, I'm on the Social Care team at Shopify.
Great question! Although we can't support customizations like this at Shopify, I do have a way to increase that number in the theme code. I've done this on my own personal account before.
Because some customizations like this aren't supported by our Design Policy you'll need to reach out to one of our partners to hire them on to correct anything for you.
That said, don't test any customizations on your live theme. Some customizations may interfere with other code changes you may have made or apps that have added scripts to your theme before. Test the customizations on an unpublished copy of your theme instead first.
Be sure to follow the steps to back up your theme though anytime you do any unsupported customizations to any themes. This way you can easily get your original set up back online right away without any interruptions.
Before I get into how to do it, the Venture theme has a maximum of 4 slides that you can add to the main hero slideshow on the theme.
Here's how that works to add the maximum number of slides in the Theme Editor:
After you've done your backups you can test this quick customization out on your theme copy.
Here's how to change the maximum number of slides:
1. Go to Online Store > Themes.
2. Next to the Venture theme you'll be testing this on and click on the Actions dropdown beside it.
3. Select Edit Code.
4. On the left side click on the Sections folder.
5. Scroll down and click on {/} slideshow.liquid
to open it.
6. Use your keyboard shortcut search function.
7. Paste this exact phrase max_blocks
and press enter to find it in your code.
8. Change the number to your desired maximum.
9. Save.
10. Refresh your Theme Editor if you had it open on another tab.
For a look at Steps 4-9 see the Gif I recorded below:
Once you've followed the steps above you'll be able to add up to the maximum slides you entered in the code.
Check out what my code results looked like below after refreshing my Theme Editor:
I'd like to mention though to be careful with the maximum number of slides.
Our Shopify (free) themes are built to be optimized for speed and other SEO factors. The maximum number of slides originally built into it is the optimal number to have on your site without compromising your site load speed.
Often too many unnecessary additions or changes to themes can hurt your business rather than improve it.
That said, I don't recommend to add more than 6 slides. Here a couple of reasons why:
Take a few minutes to decide what you want to feature on your slideshow and test it out.
You can also feel free to drop a post in our Feedback board to get some valuable feedback on your store from Shopify Support, Shopify Experts, Partners, and fellow Merchants.
Let me know how you do with the information above! I'm happy to answer any questions you think of as you work on your business.
Lilith | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
This is an accepted solution.
Hi, @MajMae!
My name is Lilith, I'm on the Social Care team at Shopify.
Great question! Although we can't support customizations like this at Shopify, I do have a way to increase that number in the theme code. I've done this on my own personal account before.
Because some customizations like this aren't supported by our Design Policy you'll need to reach out to one of our partners to hire them on to correct anything for you.
That said, don't test any customizations on your live theme. Some customizations may interfere with other code changes you may have made or apps that have added scripts to your theme before. Test the customizations on an unpublished copy of your theme instead first.
Be sure to follow the steps to back up your theme though anytime you do any unsupported customizations to any themes. This way you can easily get your original set up back online right away without any interruptions.
Before I get into how to do it, the Venture theme has a maximum of 4 slides that you can add to the main hero slideshow on the theme.
Here's how that works to add the maximum number of slides in the Theme Editor:
After you've done your backups you can test this quick customization out on your theme copy.
Here's how to change the maximum number of slides:
1. Go to Online Store > Themes.
2. Next to the Venture theme you'll be testing this on and click on the Actions dropdown beside it.
3. Select Edit Code.
4. On the left side click on the Sections folder.
5. Scroll down and click on {/} slideshow.liquid
to open it.
6. Use your keyboard shortcut search function.
7. Paste this exact phrase max_blocks
and press enter to find it in your code.
8. Change the number to your desired maximum.
9. Save.
10. Refresh your Theme Editor if you had it open on another tab.
For a look at Steps 4-9 see the Gif I recorded below:
Once you've followed the steps above you'll be able to add up to the maximum slides you entered in the code.
Check out what my code results looked like below after refreshing my Theme Editor:
I'd like to mention though to be careful with the maximum number of slides.
Our Shopify (free) themes are built to be optimized for speed and other SEO factors. The maximum number of slides originally built into it is the optimal number to have on your site without compromising your site load speed.
Often too many unnecessary additions or changes to themes can hurt your business rather than improve it.
That said, I don't recommend to add more than 6 slides. Here a couple of reasons why:
Take a few minutes to decide what you want to feature on your slideshow and test it out.
You can also feel free to drop a post in our Feedback board to get some valuable feedback on your store from Shopify Support, Shopify Experts, Partners, and fellow Merchants.
Let me know how you do with the information above! I'm happy to answer any questions you think of as you work on your business.
Lilith | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Hi Lilith,
I truly appreciate your help! and I'll reconsider my decision on the number of slides.
Happy new year!
Hi, @MajMae! Happy new year to you too!
I'm glad I could provide some assistance to help you out.
Happy sales!
Lilith | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Hi, do you know how I can change the time to 4 seconds in between slides? I currently only see 3 and 5 seconds as an option
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025