Adding lines between my product in all pages

Solved

Adding lines between my product in all pages

ai41
Explorer
76 0 19

Hi , i want to show lines between my products like this image here 

IMG_8256.jpeg

  and this is my website url : saintalen.com

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
11532 2257 2437

This is an accepted solution.

Hi @ai41 

You can add this code to theme.liquid file, after <head> in Online Store > Themes > Edit code 

<style>
.collection slider-component { padding: 0 !important; }
.collection .product-grid { 
   column-gap: 0; 
   row-gap: 0;  
    border: 1px solid #000;
    margin-top: 0;
    justify-content: space-between;
}
.collection .product-grid .grid__item {
    border-right: 1px solid;
    border-bottom: 1px solid;
}
}
</style>

Screenshot 2024-10-31 at 14.26.01.png

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

View solution in original post

Replies 4 (4)

Moeed
Shopify Partner
7334 1989 2424

Hey @ai41 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.grid__item {
    border: solid 1px black !important;
}
</style>

RESULT:

Moeed_0-1730358450519.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


ai41
Explorer
76 0 19

Thank you Moeed, i want it to be only 1 line not 2 lines near to each , also the lines disappear when i moved the mouse to it as you see here at the top of the proudct , i dont want this to happen 

ai41_0-1730359128066.png

 

ai41
Explorer
76 0 19

also i want it to appear just for the products not to every thing in the site 

Dan-From-Ryviu
Shopify Partner
11532 2257 2437

This is an accepted solution.

Hi @ai41 

You can add this code to theme.liquid file, after <head> in Online Store > Themes > Edit code 

<style>
.collection slider-component { padding: 0 !important; }
.collection .product-grid { 
   column-gap: 0; 
   row-gap: 0;  
    border: 1px solid #000;
    margin-top: 0;
    justify-content: space-between;
}
.collection .product-grid .grid__item {
    border-right: 1px solid;
    border-bottom: 1px solid;
}
}
</style>

Screenshot 2024-10-31 at 14.26.01.png

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.