change colour of my coded lines

change colour of my coded lines

ads18922
Trailblazer
197 0 62

hello, i added some code to part of my store so that there are lines to separate some sections. In this code, there is a colour option, but every time i try and change it, it just stays white. I would like the lines to be a light grey, similar to the separator line in my footer:

Screenshot 2025-06-06 at 13.52.39.png

here is an example of one of my lines i have added on my store. As you can see, it's just a white line - i would like it to look like this colour:

Screenshot 2025-06-06 at 13.52.43.png

which is like a subtle grey line (this is a line in my footer which i didn't add with code)

my store is www.antico-abito.com , theme is dawn

Replies 4 (4)

websensepro
Shopify Partner
2127 265 317

Hi @ads18922 ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

<style>
@media(max-width:767px){
#shopify-section-template--24944730112323__rich_text_R4tpqp [class*="rich_text"] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#shopify-section-template--24944730112323__featured_collection [class*="featured_collection"] {
   border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#shopify-section-template--24944730112323__rich_text_xAWPYY [class*="rich_text"] {
   border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#shopify-section-template--24944730112323__rich_text_8x8eYW [class*="rich_text"] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
}
@media(min-width:768px){
#shopify-section-template--24944730112323__rich_text_R4tpqp [class*="rich_text"] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#shopify-section-template--24944730112323__featured_collection [class*="featured_collection"] {
   border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#shopify-section-template--24944730112323__rich_text_xAWPYY [class*="rich_text"] {
   border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#shopify-section-template--24944730112323__rich_text_8x8eYW [class*="rich_text"] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
}
</style>

Result:

 

websensepro_0-1749216203243.pngwebsensepro_1-1749216205844.pngwebsensepro_2-1749216207715.png

 


If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
ads18922
Trailblazer
197 0 62

that is great, however, in your code you have added some random lines in some places - is there any way you could make the lines just for the places where the original lines were?

topnewyork
Astronaut
1539 189 250

Hi @ads18922,


1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

.rich-text,
#shopify-section-template--24944730112323__featured_collection [class*="featured_collection"],
#shopify-section-template--24944730112323__rich_text_R4tpqp [class*="rich_text"] {
    border-bottom: 1px solid #1f2f2e !important;
}

 

topnewyork_0-1749215293000.png

 


Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month
ads18922
Trailblazer
197 0 62

in your image there is no line?