I’m using the Fabric Shopify theme and I’m trying to change the white bar above the header on my homepage only.
I’ve already tried many CSS rules in base.css and in Custom CSS (targeting .template-index, .header, .header-wrapper, .shopify-section-header, and even pseudo-elements), but none of them have any effect.
Here’s a screenshot of the issue (white bar at the top of the homepage):
My goal: Make white top bar on mobile black Only on the homepage, not on other pages
I suspect the Fabric theme might be using a special container, overlay, or gradient that’s not being targeted by standard selectors. It could also be injected by Liquid, and may require identifying the correct section wrapper.
Does anyone know:
Which exact HTML element in the Fabric theme controls that top white bar?
The correct selector to override it only on template-index?
Whether this is controlled by a specific section or setting in the theme code?
Any help or pointing me to the right file/section would be greatly appreciated. I’ve tried quite a few approaches and nothing is changing the bar color at all.
Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.
Hi @CoverArt1, for Fabric theme the top mobile bar is usually inside a div with a class like .header-top or .announcement-bar. You can override it only on the homepage using this CSS in your Custom CSS section:
If that doesn’t work, inspect the element in mobile view to find the exact container class—it may be a pseudo-element or gradient applied via Liquid. Once you identify it, prefix it with .template-index to target the homepage only.
exactly what time said. Even though it might look like part of the shop’s design to non-technical folk, good news is it’s just your mobile Status Bar that is controlled by your device’s display settings (light vs dark, see below)