Skip to content

Instantly share code, notes, and snippets.

@shopifypartners
Created September 25, 2019 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shopifypartners/d7ca5ceab0a1901d3a3649d5b08e24fd to your computer and use it in GitHub Desktop.
Save shopifypartners/d7ca5ceab0a1901d3a3649d5b08e24fd to your computer and use it in GitHub Desktop.
How to use Shopify theme settings to create mobile-specific logos |
{
"type": "image_picker",
"id": "logo",
"label": "Logo image"
},
{
"type": "range",
"id": "logo_max_width",
"min": 50,
"max": 450,
"step": 10,
"unit": "px",
"label": "Custom logo width",
"default": 250
},
{
"type": "image_picker",
"id": "mobile_logo",
"label": "Logo image"
},
{
"type": "range",
"id": "mobile_logo_max_width",
"min": 50,
"max": 450,
"step": 10,
"unit": "px",
"label": "Custom logo width",
"default": 60
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment