What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Adding lines between my product in all pages

Solved

Adding lines between my product in all pages

ai41
Explorer
70 0 17

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
10296 2044 2115

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 and Accept solution! Or Support me: Buy Coffees
- 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 4 (4)

Moeed
Shopify Partner
6346 1721 2079

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!

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


ai41
Explorer
70 0 17

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
70 0 17

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

Dan-From-Ryviu
Shopify Partner
10296 2044 2115

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 and Accept solution! Or Support me: Buy Coffees
- 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.