How can I resize slideshow images for desktop viewing?

Solved

How can I resize slideshow images for desktop viewing?

saraterese
Tourist
5 0 1

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

Accepted Solution (1)

BSS-Commerce
Shopify Partner
3477 464 552

This is an accepted solution.

Hi @saraterese ,

 

You can try this way:

 

1. Online Store -> Themes -> Edit code:

 

view (63).png

 

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:

view (64).png 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


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 4 (4)

BSS-Commerce
Shopify Partner
3477 464 552

This is an accepted solution.

Hi @saraterese ,

 

You can try this way:

 

1. Online Store -> Themes -> Edit code:

 

view (63).png

 

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:

view (64).png 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


BSS Commerce - Full-service eCommerce Agency
saraterese
Tourist
5 0 1

Awesome! Thanks it worked.

STextiles
Visitor
2 0 0

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!

saraterese
Tourist
5 0 1
I would love this too! If anyone has a solution.