Add divider line in product information under the price

Topic summary

A user seeks to add a horizontal divider line below the product price on their Shopify store’s product information section.

Solutions Provided:

Two approaches were offered:

  1. JavaScript/HTML method: Insert custom code in the theme.liquid file above the </body> tag. This solution was confirmed working by the original poster, who then requested guidance on increasing spacing between the divider and price.

  2. CSS method: Add styling to the base.css/style.css file targeting the .price.price--large.price--show-badge class with a bottom border and padding. Initially reported as not working, but the contributor revised the code to include additional spacing.

Current Status:

The discussion remains open with the first solution successfully implemented, though the spacing adjustment question is pending response. The CSS approach may have been updated to address the initial failure.

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

Hello, does anybody know how we can add an divider line in the product information section?

URL: https://excitarestudios.com/

See image as example

2 Likes

Hey @JoaquinExcitare

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 tag


RESULT:

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

Best Regards,
Moeed

Hi @JoaquinExcitare

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.price.price--large.price--show-badge {
    border-bottom: 1px solid #f2f2f2 !important;   
    padding-bottom: 10px; 
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

This one does not work, do you have another code?

Hello Moed, This one worked. How can we get more space between the divider and the price?

Please, try it again I also add space. Thanks!