Shopify themes, liquid, logos, and UX
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:
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)
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!
Solved! Go to the solution
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>
- 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.
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:
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
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>
- 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.
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.
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>
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024