Hello!
I’m trying to make the price align with the title, but on the right. Using the Prestige theme
How I have:
How I want:
Goal: Align the product price to the right of the product title on collection pages in the Prestige theme. Images provided show current vs desired layout.
Proposed solution:
Implementation guidance:
Current status:
Hello!
I’m trying to make the price align with the title, but on the right. Using the Prestige theme
How I have:
How I want:
Hey @leosef ,
Could you share your store URL so I can check?
@leosef ,
To Align the price to the right of the product title within the structure you provided, we’ll need to modify the HTML layout and apply some CSS adjustments.
Boundless Case
iPhone 15
Storm Black
CSS Adjustments:
Add the following CSS to your Assets > theme.css or theme.scss.liquid file:
.product-header-flex {
display: flex;
justify-content: space-between; /* Title on the left, price on the right */
align-items: center; /* Vertically align content */
gap: 10px;
width: 100%; /* Ensure it spans the full width */
}
.product-title {
flex: 1; /* Take up available space */
margin: 0;
white-space: nowrap; /* Prevent wrapping */
}
.price-list {
margin-left: auto; /* Push price to the right */
white-space: nowrap;
text-align: right;
}
This layout will now align the price to the right of the title smoothly within your product card design.
If I was able to help you, please don’t forget to Like and mark it as the Solution!
Best Regard,
Rajat Sharma
Hello!
Thanks. But how should i edit the HTML? Where is that located.
Thanks!
Follow these steps:
Go to Online Store > Themes > Edit Code.
Look for the Product Card HTML:
In most cases, the product card layout will be inside one of these files:
This will help you locate the specific part you need to modify.
Modify the HTML Structure:
Once you’ve found the relevant block, update it with the Flexbox HTML I shared earlier:
liquid:
{{ product.title }}
Let me know if you encounter any issues while navigating through the files!
Hello!
I did everything as you wrote. But I think It didn’t fix it quite, please check and tell me if I did anything wrong.
To check this, I’ll need access to your store and review the theme to see if it includes this feature. If it doesn’t, custom code may be required. If you’re comfortable sharing access, I’d be happy to take a look and update you accordingly.
Could you please send me a message via email so we can discuss this further?
Hey @leosef ,
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.