IMPORTANT PLS: Reduce Size of Product Card (Featured Collection) in Mobile only

Solved

IMPORTANT PLS: Reduce Size of Product Card (Featured Collection) in Mobile only

RaghavGoel1
Excursionist
41 0 12

Hi all, 

On my homepage I have added a featured product section and kept it '1 section only' with 'scroll enabled' for mobile view. My URL is - https://f40566-d3.myshopify.com/

Currently this is how its appearing on mobile view:

IMG_D4A1499693E8-1.jpeg

 

However, I'm finding the product cards to be too large in size. I don't want to shift to '2 colomns' for mobile view since that looks weird and too cramped. 

I want to make it look something like this: 
(reference URL - goudagames.in)

IMG_D52E65BB7510-1.jpeg

As you can see, not two full colomns neither one, somewhere in the middle.

Can someone please help me achieve this? Would be very helpful. 

Thank you!

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
10766 2128 2249

This is an accepted solution.

Hi @RaghavGoel1 

You can do that by adding this code to your theme.liquid file, after <head> in Online Store > Themes > Edit code 

<style>
@media (max-width: 749px) {
    .slider--tablet.grid--peek.grid--1-col-tablet-down .grid__item {
     width: calc(100% - var(--grid-mobile-horizontal-spacing) - 12rem) !important;
    }
}
</style>

Screenshot 2024-07-19 at 08.54.08.png

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 5 (5)

BSSCommerce-HDL
Shopify Partner
2305 834 905

Hi @RaghavGoel1

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

 

<style>
@media screen and (max-width: 749px) {
    .collection .slider--tablet.grid--peek.grid--1-col-tablet-down .grid__item {
        width: calc(70% - var(--grid-mobile-horizontal-spacing) - 3rem) !important;
    }
}
</style>

 

Here is result: 

BSSCommerceHDL_0-1721352731391.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Dan-From-Ryviu
Shopify Partner
10766 2128 2249

This is an accepted solution.

Hi @RaghavGoel1 

You can do that by adding this code to your theme.liquid file, after <head> in Online Store > Themes > Edit code 

<style>
@media (max-width: 749px) {
    .slider--tablet.grid--peek.grid--1-col-tablet-down .grid__item {
     width: calc(100% - var(--grid-mobile-horizontal-spacing) - 12rem) !important;
    }
}
</style>

Screenshot 2024-07-19 at 08.54.08.png

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

RaghavGoel1
Excursionist
41 0 12

Thanks @Dan-From-Ryviu, this worked well! 😄 
Have a good day. 

Dan-From-Ryviu
Shopify Partner
10766 2128 2249

You are very welcome. Have a wonderful day! 

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

jehan70
Excursionist
38 0 5

It adds gap in each card in my situation. I had like it to be 75% mobile or tablet screen.

 

Edit:
Added the code and it fixed.

<style>
@media only screen and (min-width: 600px) {
.grid__item img.motion-reduce {
max-width: 250px!important;
object-fit: contain!important;

left: auto!important;
right: auto!important;
}
.grid__item .card .media {
display: flex;
justify-content: center;
}

}

</style>