Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I have added a slideshow at the bottom of my store. They look perfect from a mobile but are absolutely huge on a desktop. I have tried resizing the images to fit the recommended size but having the same issue. If I select small on the slides the images are cut off. Any help making the slides look good on a desktop would be greatly appreciated.
Here is my store: ellamarinababy.com
Solved! Go to the solution
This is an accepted solution.
Hi @saraterese ,
You can try this way:
1. Online Store -> Themes -> Edit code:
2. Find the base.css file and add this code at the end of the file:
@media screen and (min-width: 750px){ .slideshow.banner{ max-height: 800px; } .slideshow__media img{ object-fit: contain; } .slideshow:before{ padding-bottom: 41% !important; } }
Result:
Hope it's useful to you @saraterese !
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
This is an accepted solution.
Hi @saraterese ,
You can try this way:
1. Online Store -> Themes -> Edit code:
2. Find the base.css file and add this code at the end of the file:
@media screen and (min-width: 750px){ .slideshow.banner{ max-height: 800px; } .slideshow__media img{ object-fit: contain; } .slideshow:before{ padding-bottom: 41% !important; } }
Result:
Hope it's useful to you @saraterese !
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Awesome! Thanks it worked.
Is there a way to change the grey background (around the cropped desktop banner) to white rather than the default grey? As I added this code to my Dawn themed store too and it worked great, I would just rather the surround be white to blend in with the rest of the page... Thanks!
Hi! Not sure if you are still wanting a solution for this, but I just added one above that worked for me. 😊
Hi! I had the same problem with the grey background when I applied the BSS-Commerce solution to my base.css file - I manage to solve it by adding an additional setting into the code which has worked for me! (Trade theme)
Additional Code:
.slideshow__media {
background: transparent;
}
Hope that helps anyone else. 😊
Hi BSS - I also would like to change the grey background (around the cropped desktop banner) to white rather than the default grey? Any tips on how to do so? Thank you!!
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025