Re: Issue with Mobile Carousel Layout

Issue with Mobile Carousel Layout

SPdas
New Member
6 0 0

I'm experiencing an issue with the mobile version of my carousel on Trade Theme. I have a product slider where each product should take up 100% of the screen width, but on mobile, the second product is partially visible while the first product is in view. How can I make each slide in the carousel take up 100% width on mobile without showing part of the next product?

SPdas_0-1743545840560.png

SPdas_1-1743545853044.png

SPdas_2-1743545857559.png

 

Replies 7 (7)

aces01
New Member
4 0 0

It need to be aligned from the media section
Would you mind few help?

R.A

Ibsalesagency
Tourist
3 0 1

hey  @SPdas 
It sounds like your carousel’s width calculation or overflow settings are causing the issue. Here’s how you can fix it in your Trade Theme on Shopify
are you open to more discussion?

SPdas
New Member
6 0 0

No, I did it myself. if you have a solution please let me know.

SPdas
New Member
6 0 0

I attempted to apply the provided code to both the feature collection CSS and base.CSS, but unfortunately, it didn't work. I couldn't locate the carousel setting the only available option is to turn it on or off. Please see the image below for your review and you can also check the following URL: https://splendas.com/.

SPdas_0-1743595295656.png

 

tim
Shopify Partner
4453 529 1628

@SPdas, consider looking at this from another point of view: this is done intentionally to hint that this element is a carousel and that it can be swiped left and right.

I see no arrows or dots -- usual signs that element is a carousel...

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
SPdas
New Member
6 0 0

Tim, an arrow is cropped. Please take a look at this website URL https://splendas.com/ 

tim
Shopify Partner
4453 529 1628

In this case paste this into "Custom CSS" setting of this section:

@media screen and (max-width: 989px) {
  .collection .slider.product-grid {
    scroll-padding-left: 0;
  }

  .collection .slider li {
    width: 100%;
  }
}

Will stretch your slide to full-bleed on mobile:

Screenshot 2025-04-03 at 12.31.59 AM.png

 

If you want some space around, add something like:

.collection {
  padding-left: 1rem;
  padding-right: 1rem;
}

Screenshot 2025-04-03 at 12.34.44 AM.png

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com