# ▶️ How and when to use style blocks

Source: https://support.storeconnect.com/articles/how-and-when-to-use-style-blocks · Last modified 21 August 2026

Video: https://vimeo.com/1197572010?fl=sv&fe=ci

## 1. Create a style block

1.  Go to the **Style Blocks** list (**StoreConnect Navigation** → **Custom Content**).
2.  Select **New**.

## 2. Configure the style block

1.  Give the style block a **Name** you will recognize later.
2.  Assign it to your **Store**.
3.  Set the configuration:
    -   **Active** — check this to enable the style block.
    -   **Channels** — select **Web** for your online store, **POS** for the point of
        sale app, or both. This field is required.
    -   **Global** — check this to apply the CSS across the entire store. Leave it
        unchecked and the style block is not included on your store at all.
    -   **Media** — the media type the CSS is meant for: `all`, `print`, or `screen`.
        This is written out as the `media` attribute on the rendered tag.
    -   **Position** — the order style blocks load in. Lower numbers load first.
4.  Enter your CSS in the **Content** field, written **without** `<style>` tags.
    StoreConnect adds them for you. For example:

    ```css

    body { background-color: lightblue; }
    ```

5.  Select **Save**.

## 3. Test the result

1.  Go to your storefront and refresh the page.
2.  Confirm your CSS has taken effect, for example the new background color.

The style block is rendered in the `<head>` of every page, wrapped in a `<style>` tag,
after the **Custom Styles** field on the Store record and before the head content block.

## Notes

-   Style blocks suit custom fonts, button styles, layout adjustments, page-specific
    tweaks, and responsive design improvements.
-   Disable a style block at any time by unchecking **Active**. You do not need to delete
    it.
-   Target specific elements or pages with ordinary CSS selectors. A style block loads on
    every page, so the selector is what scopes the change.
-   To load an external stylesheet instead of writing rules here, set **Stylesheet URL**.
    It renders as a `<link rel="stylesheet">` tag. See
    [Adding custom CSS](adding-custom-css) for the other ways to add CSS.

---

## Follow StoreConnect

- [Email Newsletter](https://getstoreconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://getstoreconnect.com/partners)
- [News](https://getstoreconnect.com/articles/news)
- [Events](https://getstoreconnect.com/articles/events)
- [Feature Comparison](https://getstoreconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://getstoreconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

---

StoreConnect Support — https://support.storeconnect.com/articles/how-and-when-to-use-style-blocks