I am having problems with editing the code for Dawn 6.0.2. Product page - product name and price alignment. I am trying to place the name of the product on all product pages and the price on the same line (product name right and price left). At the moment I have everything centred, this leaves a lot of space between the price, variant picker, etc, on the product page. My url; mysticmoods.co.uk. I hope someone can help with this. Thanks
Im not sure if this is what you like to achieve, check it out.
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:
@media only screen and (min-width: 749px){
.price.price--large.price--show-badge {
text-align: left;
}
.product__title {
text-align: right !important;
}
.price.price--large.price--show-badge {
position: absolute;
top: 29%;
}
}
@Made4uo-Ribe Thank you very much for your reply, that is exactly what I want to achieve, only difference being that the price has to be on the right side of the page and the title on the left side of the page. Thank you very much
@Moeed thank you very much for your reply, your code has helped with reducing the padding, however, what i am after is placing the product name and price on the same line. Thank you very much.
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you find this information useful, a Like would be greatly appreciated. Also, to get the product name and price on the same line is not possible via CSS code. It’s a code customization work. If you’re not familiar with coding then I highly suggest you to hire a Shopify developer.
As per the mobile - I am coming to my wits end with the mobile ; product name left - price right. I have tried you’re attached + a few combinations but the codes seems to interfere.