---
title: Passing parameters to static blocks - Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: 'https://shopify.dev/changelog/passing-parameters-to-static-blocks'
  md: 'https://shopify.dev/changelog/passing-parameters-to-static-blocks.md'
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: Themes
    handle: dev_themes
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2025-04-22T21:24:34-04:00'
  postedAt: '2025-05-21T15:00:00-04:00'
  updatedAt: '2025-04-25T12:00:25-04:00'
  effectiveAt: '2025-04-24T12:00:00-04:00'
---

May 21, 2025

Tags:

* Themes

# Passing parameters to static blocks

You can now pass arbitraty parameters to static blocks, making it possible simplify the theme code by building more composable components.

As an example, you can pass color from your section to your static block:

```
{% content_for "block", id:"slide-1", type:"slideshow", color: "#F00" %}
```

From the block that data can be easily accessed:

```
{{ color }}
```

You can learn more about this feature in our [developer docs](https://shopify.dev/docs/storefronts/themes/architecture/blocks/theme-blocks/static-blocks#passing-data-to-static-blocks).
