Hi all,
my Sale and Sold Out badges on product pages aren’t aligned to the price. Is there a way to align them up higher to the same height as the price? Pics attached below.
url:
pass:
test99
A user is experiencing misalignment between product badges (Sale/Sold Out) and pricing on their Shopify product pages, with badges appearing lower than desired.
Solutions Provided:
Two community members offered CSS-based fixes:
</head> tag to adjust badge positioning</body> tag in theme.liquid, specifically targeting .product .price--large with flexbox properties (display: flex and align-items: center) for screens 750px and widerBoth solutions involve editing the theme’s liquid files through the Shopify admin panel (Online Store → Theme → Edit code). Screenshots were provided showing the expected alignment results after implementing the fixes.
Status: The issue appears resolved with multiple working solutions offered, though no confirmation from the original poster is visible.
Hi all,
my Sale and Sold Out badges on product pages aren’t aligned to the price. Is there a way to align them up higher to the same height as the price? Pics attached below.
url:
pass:
test99
Hello @vvyan
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.