Hi. I was wondering if someone knows how to put the name of the item and its price on the same row, one near the other.
This is the example:
And this is how mine looks like:
I have tried to find something that works but no luck so far.
A user asked how to display product names and prices on the same horizontal row in the Dawn theme, rather than stacked vertically.
Solution Provided:
A PageFly representative shared CSS code to be added to component-card.css:
grid-template-columns: auto autoCurrent Status:
The original poster confirmed the solution works. However, two follow-up issues emerged:
These mobile responsiveness and alignment refinements remain unresolved.
Hi. I was wondering if someone knows how to put the name of the item and its price on the same row, one near the other.
This is the example:
And this is how mine looks like:
I have tried to find something that works but no luck so far.
Hi @AndreiGhetu ,
Could you please share URL and your store password if it enabled? So that we can help you.
Thank you.
password: 123123123
Hi @AndreiGhetu ,
This is Victor from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/component-card.css->paste below code at the bottom of the file:
.card__information {
justify-items: flex-start;
grid-template-columns: auto auto;
display: grid;
margin-left: 10px;
margin-right: 10px
}
.card__information .card__heading, .card__information .price {
text-align: right !important;
margin-top: -5px !important
}
Hope my answer will help you.
Best regards,
Victor | PageFly
It worked! Thank you so much! You are a true hero.
Hi,
this works fine, however the price ends up a tad bit lower then the title… any idea why?
@PageFly-Victor thank you very much for sharing this code - it works fantastic on my dawn theme. Do you happen to know what line of code I need to add to get the same results on mobile. Atm on mobile both the text and price is centred with each word sitting on top of each other. Thank you very much.