Skip to content

Why you can't restyle that Shopify widget, and what to do

Date

20 Jun 2026

Category

Gotcha

Platform

Shopify

A client had a third-party store locator on their site that stubbornly refused to match the brand. Every style we wrote for it simply bounced off. Nothing wrong with the CSS. The widget was built in a way that walls your styles out on purpose.

What we did

The widget renders inside what is called shadow DOM, a sealed-off part of the page the third party controls, specifically so your site’s styles cannot reach in and break their component. Good for them, frustrating for you when all you want is for it to match your colours. Your CSS is not being ignored, it physically cannot cross the boundary.

The realistic move is not to fight it. We styled it through the options the widget itself exposes, its own theming and colour settings, and matched those to the brand rather than trying to override from outside. Where a widget gives you theming hooks you use them, and where it gives you none you accept the limit instead of shipping hacks that break on the next update.

What to take from it

If a widget on your store refuses every style you throw at it, it is almost certainly sealed in shadow DOM, and that is by design. Check what theming options the widget itself offers before anyone spends hours writing CSS that was never going to work. Sometimes the honest answer is “this is as far as it bends”, and knowing that early saves a lot of money.