Hi,
As you can see the check marks are white on desktop, but black on mobile. How do i change this to white for mobile also?
Desktop:
Mobile:
Store:
Theme: Craft
Thanks!
A Shopify store owner using the Craft theme encountered an issue where checkmarks in the announcement bar appeared white on desktop but black on mobile devices.
Root Cause:
The selected font lacks a definition for the checkmark symbol, forcing browsers to use fallback fonts. Desktop and mobile browsers chose different fallbacks, resulting in inconsistent colors.
Solution Provided:
Add custom CSS to the announcement bar section to specify a fallback font (monospace) that includes the checkmark symbol:
.announcement-bar__message {
font-family: var(--font-heading-family), monospace;
}
Implementation Issue:
Initially, the code didn’t work because the user omitted the dot (.) before the class name. After correction, the checkmarks displayed consistently in white.
Ongoing Concern:
While the color issue is resolved, the checkmark appearance with the monospace font isn’t ideal on mobile. Alternative checkmark symbols (✓ or
) were suggested as potential improvements for better font representation.
Hi,
As you can see the check marks are white on desktop, but black on mobile. How do i change this to white for mobile also?
Desktop:
Mobile:
Store:
Theme: Craft
Thanks!
Hi @Thetraveladdict ,
I checked and it shows fine, did you solve it?
Not all fonts contain all symbols. The font you’re using does not have definition for this checkmark symbol, so the browser has to fall back to a font of its own choosing. Browser on desktop chooses one font, browser on mobile chooses another.
You can try to suggest a better fall-back font – monospace usually has most of the symbols.
Paste this into “Announcement bar” section setting “Custom CSS”
.announcement-bar__message {
font-family: var(--font-heading-family), monospace;
}
Hi @tim_1 I tried this one, but on my iphone browser it’s still black
I do not see the code applied at your site.
When I add it in the browser on my iPhone, it works.
You’re missing the dot in front of the announcement-bar__message – rule does not apply.
Hi @tim_1 it worked. However with this font the checkmark doesn’t really look well on mobile…
Well, you can try different checkmarks – they may better representation in fonts than the one you have:
https://www.toptal.com/designers/htmlarrows/symbols/check-mark/ or
https://www.toptal.com/designers/htmlarrows/symbols/heavy-check-mark/