Skip to main content
Glama
settings.md1.24 kB
# Settings ## Overview The `settings` object provides access to all theme configuration values stored in the `settings_schema.json` file. ## Availability This object is accessible globally throughout Shopify theme templates. ## Purpose "Allows you to access all of the theme's settings from the `settings_schema.json` file." You can retrieve and use any configured theme setting values in your Liquid templates. ## Learning Resources For information about available configuration types, explore the input settings documentation on Shopify's theme development guide. ## Usage Example ### Accessing a Setting Value You can reference theme settings using dot notation within Liquid conditions and filters: ```liquid {% if settings.favicon != blank %} <link rel="icon" type="image/png" href="{{ settings.favicon | image_url: width: 32, height: 32 }}"> {% endif %} ``` ### Data Structure When a setting exists in your configuration: ```json { "settings": { "favicon": null } } ``` ### Result If the setting value is blank or null, the conditional prevents output, resulting in no HTML markup. --- **Related**: Input settings provide the framework for defining theme configuration options that merchants can customize.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/shopify-liquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server