Debut Theme / large gap between main image and slide carousel on Mobile but not Desktop

Solved
Joe_Jack
Tourist
6 0 2

Hello,

 

I am using the Debut theme and am having a problem with my images when viewing only on a Mobile device.  There is a large gab between the main image and the carousel of other images.  The page display perfectly on a Desktop.  There were a few other discussions about this issue with some solutions but they didn't work for me.  Any advice would be appreciated.  Below is screen shot of the issue I am having.   

Screenshot_20231007_103853_Chrome.jpg

Here is a link to the product on my site:

https://jkproaudio.com/collections/dj-mixers/products/allen-heath-xone-96-analogue-dj-mixer

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4008 917 1121

This is an accepted solution.

Hi @Joe_Jack 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 749px){
.product-single__photo {
    height: fit-content !important;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1696704205143.png
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 4 (4)
Made4uo-Ribe
Shopify Partner
4008 917 1121

This is an accepted solution.

Hi @Joe_Jack 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 749px){
.product-single__photo {
    height: fit-content !important;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1696704205143.png
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Joe_Jack
Tourist
6 0 2

Hi @Made4uo-Ribe ,

 

Thank you for your quick suggestion and detailed instructions on how to fix this.  I tried pasting the suggested code in the "style.css" file but it didn't work.  I don't have a "base.css" file but tried pasting it in my "theme.scss.liquid" file and IT WORKED!!!!  You are a genius.  

 

I'm embarrassed to admit this but this has been an issue that went unaddressed for over 3 years.  Thank you for your help!

 

Sincerely,

Joe Jack
JK Pro Audio

Made4uo-Ribe
Shopify Partner
4008 917 1121

Your welcome, oh that is a lot of time. There is a lot of developer here in the community that willing to help. 😊 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Olarinabdullhi
Visitor
2 0 0

Ok that is good