I need help getting my product Name and my product price on the same line on the product page and the collections page. I am using Sahara Theme.
My URL is Adornolivia.com
I attached a screenshot of what it looks like now, how the price is directly below the Product name.
1 Like
Hi @Adornolivia
Please follow the instructions below
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
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:
div[id^="Product-Price-template"] {
position: absolute;
right: 6rem;
top: 3.5rem;
}
card-product a.card-product__content.focus-inset {
display: flex;
justify-content: space-evenly;
}
And save.
Result:
1 Like
Hi @Adornolivia
If you share your store URL and password with me, I will check and provide you with the solution.
This is great thank you!
Can the size of the price be bugger as well? Looks a little small.
Add this code then.
.price__regular {
font-size: 16px;
}
h6.card-product__title {
margin: 0px;
align-self: center;
}
@media only screen and (min-wdith: 749px){
div[id^=Product-Price-template] {
top: 3rem;
}
}
And Save.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
On mobile the spacing is off, and it is off centered, and the price seems to be below the product title on the product page. Desktop it looks good, but is still off little.
Do I just change the rem positioning until it is centered?
After changing the “Top 3.5rem” to 1.4Rem the mobile version is perfect, but desktop is now off. Is there no way to seperate these 2 so they can both be matched up correctly?