Hello, does anybody know how we can add an divider line in the product information section?
URL: https://excitarestudios.com/
See image as example
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:
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.
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.
Hello, does anybody know how we can add an divider line in the product information section?
URL: https://excitarestudios.com/
See image as example
Hey @JoaquinExcitare
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
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
Try this one.
.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!