manbru
September 16, 2024, 10:06pm
1
Hello,
I want to add a separator line in the product page under the product title, but I want the star rating to be under it. And with this code added to my main-product.liquid file:
It currently looks like this:
But I want it to look like this:
Here’s my product page: https://r1vex.myshopify.com/products/emil-randig-strandstol-taupe
Thanks for helping!
2 Likes
Moeed
September 16, 2024, 10:15pm
2
Hey @manbru
Remove the
tag and then
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
If you like to use the css, more easier.
check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.product__title:after {
content: '';
display: block;
height: 0.1rem;
background-color: rgba(var(--color-foreground), 0.2);
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!