A user seeks to hide product prices when items are marked as sold out in the Dawn theme. This functionality previously worked via custom code but stopped after a theme update.
Solution Provided:
Add CSS code to the “Custom CSS” or “theme settings” section:
.price.price--sold-out {
display: none;
}
This hides prices from visitors while keeping them in the HTML code
The solution persists through theme updates since it uses theme/section settings rather than direct file edits
Follow-up Question:
Another user asks whether it’s possible to display “Sold Out” text instead of simply hiding the price entirely.
Summarized with AI on November 10.
AI used: claude-sonnet-4-5-20250929.
I once had someone edit code for me to make prices disappear after products sold. After updating Dawn theme, that no longer happens. Is there code that I can edit each time my theme needs an update.
Thank you .
I am reposting as I think I asked this question in the wrong area first.