---
title: UniqueSettingId
description: Identifies duplicate setting IDs in the settings_schema.json file.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-setting-id
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-setting-id.md
api_name: liquid
---

# UniqueSettingId

Identifies theme settings in `config/settings_schema.json` that use the same `id` as another setting. Theme Check compares the IDs of the settings in every settings group in the file, and reports each duplicate ID once, at its last occurrence. Theme Check ignores settings without an `id`, such as `header` settings.

Liquid reads theme settings by ID through the [`settings`](https://shopify.dev/docs/api/liquid/objects/settings) object, so give each setting a unique ID.

***

## Examples

The following examples contain code snippets that either fail or pass this check.

### ✗ Fail

In the following example, the `Logos` and `Favicon` groups both define a setting with the ID `logo`, so Theme Check reports `Duplicate setting id found: "logo"`:

## config/settings\_schema.json

```json
[
  {
    "name": "Logos",
    "settings": [
      {
        "type": "image_picker",
        "id": "logo",
        "label": "Logo image"
      }
    ]
  },
  {
    "name": "Favicon",
    "settings": [
      {
        "type": "image_picker",
        "id": "logo",
        "label": "Favicon image"
      }
    ]
  }
]
```

### ✓ Pass

In the following example, each setting has its own ID:

## config/settings\_schema.json

```json
[
  {
    "name": "Logos",
    "settings": [
      {
        "type": "image_picker",
        "id": "logo",
        "label": "Logo image"
      }
    ]
  },
  {
    "name": "Favicon",
    "settings": [
      {
        "type": "image_picker",
        "id": "favicon",
        "label": "Favicon image"
      }
    ]
  }
]
```

***

## Options

The following example contains the default configuration for this check:

```yaml
UniqueSettingId:
  enabled: true
  severity: error
```

| Parameter | Description |
| - | - |
| `enabled` | Whether this check is enabled. |
| `severity` | The [severity](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration#check-severity) of the check. |

***

## Disabling this check

Disabling this check isn't recommended.

***
