Have your say in Community Polls: What was/is your greatest motivation to start your own business?

add a thin line below price on product page

Solved

add a thin line below price on product page

ads18922
Excursionist
60 0 26

Hello, i want to add a thin line below the price on my product page

Screenshot 2024-11-12 at 18.56.04.png

this is my website, i want it to look something like this:

IMG_2285.jpg

where there is a thin line underneath the price

 

my theme is dawn, website url is www.rosella-elegance.com , password is mechaw

Accepted Solution (1)
Mehran_Ali
Shopify Partner
406 52 64

This is an accepted solution.

Hello @ads18922 

 

did you update that code into your base.css if yes and still didn't work 
then try adding this CSS block to your theme.liquid file just before </head> tag

 

<style>
.price {
    border-bottom: 1px solid #bebebe;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
</style>

 

Because when I use the same code into Dom its works fine See

Mehran_Ali_0-1731439495112.png

 

 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

View solution in original post

Replies 7 (7)

Mehran_Ali
Shopify Partner
406 52 64

Hello @ads18922 

 

Follow these Steps:

  1. Go to the online theme 
  2. click on three dots and open the Code editor
  3. Search for Theme.css / base.css 
  4. Past that code and save it 


You can Simply add this CSS if you want that line to be shown in the Desktop view and mobile view both 

.price {
    border-bottom: 1px solid #bebebe;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

 

Or If you want it only on mobile version you can use this CSS code

@media(max-width:766px){
.price {
    border-bottom: 1px solid #bebebe;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
}

 

 If this solution Work Kindly Like this And Marke it As a Solution 
And fuel me up by Buy Me A Coffee

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

ads18922
Excursionist
60 0 26

hello this didnt work

Mehran_Ali
Shopify Partner
406 52 64

This is an accepted solution.

Hello @ads18922 

 

did you update that code into your base.css if yes and still didn't work 
then try adding this CSS block to your theme.liquid file just before </head> tag

 

<style>
.price {
    border-bottom: 1px solid #bebebe;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
</style>

 

Because when I use the same code into Dom its works fine See

Mehran_Ali_0-1731439495112.png

 

 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

ads18922
Excursionist
60 0 26

that worked, thanks!

ads18922
Excursionist
60 0 26

wait, it works on the product page, but it also added a line to the product cards on the home page. Anyway you can make it so it just appears on the product page and not products cards?

Mehran_Ali
Shopify Partner
406 52 64

Hello @ads18922 

I have not encountered any issue on the home page 

Mehran_Ali_0-1731441249787.png

 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

ads18922
Excursionist
60 0 26

i didnt check desktop, but on mobile the line was showing underneath the products cards on the homepage. Can you check on mobile?