Re: product card template

product card template

eslamibrahim
Shopify Partner
49 0 6

I want to do same product card appearance on the mobile version.

Desktop :

eslamibrahim_0-1720639765190.png

 

Mobile :

eslamibrahim_1-1720639765757.png

 

Link: https://level-up.gg/collections/earpohones

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
10101 2398 3032

Hi @eslamibrahim 

Do you mean like this? 

Made4uoRibe_0-1720641244050.png

If it is, check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

@media (max-width: 768.98px) {
.main-products-grid[data-layout=grid] .grid-cols-2>li {
    margin: 10px;
    border: 0px;
    background: #f2f2f2 !important;
    }
product-card.card.card--product.h-full.card--product-contained {
    padding: 10px;
    border: none !important;
}
.main-products-grid[data-layout=grid] .grid-cols-2 {
    background: #f2f2f2 !important;
}
}

 

  • And Save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
eslamibrahim
Shopify Partner
49 0 6

it is work but have issue, I find a line appear between product cards 

eslamibrahim_0-1720643246915.png

 

Made4uo-Ribe
Shopify Partner
10101 2398 3032

Please, replace the code with added code below. 

 

@media (max-width: 768.98px) {
.main-products-grid[data-layout=grid] .grid-cols-2>li {
    margin: 10px;
    border: 0px !important;
    background: #f2f2f2 !important;
    }
product-card.card.card--product.h-full.card--product-contained {
    padding: 10px;
    border: none !important;
}
.main-products-grid[data-layout=grid] .grid-cols-2 {
    background: #f2f2f2 !important;
}
}

 

And save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
eslamibrahim
Shopify Partner
49 0 6

thank you so much, I want to do the same in search page.

eslamibrahim_0-1720644741896.png

 

Made4uo-Ribe
Shopify Partner
10101 2398 3032

Add this code then, 

 

.cc-main-search {
    background: #f2f2f2 !important;
}
.cc-main-search .container {
    padding-top: 20px;
}

 

And Save. 

Result:

Made4uoRibe_0-1720648220385.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.