A user is implementing a Stockist.co store locator widget on a Shopify page using sections and blocks, but the widget spans the full width without proper margins.
Initial Problem:
The store locator widget lacks left and right margins
Solution Provided:
PageFly support staff suggested adding custom CSS to control margins:
Navigate to Online Stores > Themes > Edit code
Locate theme.liquid file
Add CSS targeting #stockist-widget .stockist-horizontal with 20px margin
Insert code above the </head> tag
Follow-up:
The desktop solution worked successfully. For mobile responsiveness, additional CSS was provided using a media query (@media (max-width: 768px)) targeting #stockist-widget.stockist-responsive .stockist-map with 15px margin and !important flag.
The issue appears resolved with responsive margin controls for both desktop and mobile viewports.
Summarized with AI on November 11.
AI used: claude-sonnet-4-5-20250929.
Im using sections and blocks on this page template - I added the widget to a block of liquid.. However I cannot get the margins to work.. Anybody have a clue what I can do to put this widget into a container or add margins to the sides so it doesnt span? https://devildaves.com/pages/bulk-bloody-mary-seasoning
This is Amelia at PageFly - Shopify Advanced Page Builder app.
You can try the following steps I have provided to help you solve the problem you are facing:
You can try the following steps I have provided to help you solve the problem you are facing:
Step 1**:** Online Stores > Themes > Edit code
Step 2**:** Choose file theme.liquid, Step 3: Add code above the tag .
If you are using a page builder app, you can directly open the Custom code section of the app and use the code below without following the steps above.
Thank you Amelia - That worked great for desktop. I put it in the CSS of the editor.. If I want to give it padding on mobile, should I create another line and wrap it in @mobile ?