Skip to content

Commit

Permalink
Theme settings
Browse files Browse the repository at this point in the history
  • Loading branch information
katycobb committed Dec 21, 2024
1 parent 84b1f1b commit f271095
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 47 deletions.
18 changes: 2 additions & 16 deletions config/settings_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@
"type": "font_picker",
"id": "type_header_font",
"default": "assistant_n4",
"label": "t:settings_schema.typography.settings.type_header_font.label",
"info": "t:settings_schema.typography.settings.type_header_font.info"
"label": "t:settings_schema.typography.settings.type_header_font.label"
},
{
"type": "range",
Expand All @@ -133,8 +132,7 @@
"type": "font_picker",
"id": "type_body_font",
"default": "assistant_n4",
"label": "t:settings_schema.typography.settings.type_body_font.label",
"info": "t:settings_schema.typography.settings.type_body_font.info"
"label": "t:settings_schema.typography.settings.type_body_font.label"
},
{
"type": "range",
Expand Down Expand Up @@ -1305,10 +1303,6 @@
{
"name": "t:settings_schema.social-media.name",
"settings": [
{
"type": "header",
"content": "t:settings_schema.social-media.settings.header.content"
},
{
"type": "text",
"id": "social_facebook_link",
Expand Down Expand Up @@ -1368,10 +1362,6 @@
{
"name": "t:settings_schema.search_input.name",
"settings": [
{
"type": "header",
"content": "t:settings_schema.search_input.settings.header.content"
},
{
"type": "checkbox",
"id": "predictive_search_enabled",
Expand All @@ -1397,10 +1387,6 @@
{
"name": "t:settings_schema.currency_format.name",
"settings": [
{
"type": "header",
"content": "t:settings_schema.currency_format.settings.content"
},
{
"type": "paragraph",
"content": "t:settings_schema.currency_format.settings.paragraph"
Expand Down
55 changes: 24 additions & 31 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,19 @@
"label": "Logo"
},
"logo_width": {
"label": "Desktop logo width",
"info": "Logo width is automatically optimized for mobile."
"label": "Width"
},
"favicon": {
"label": "Favicon image",
"info": "Will be scaled down to 32 x 32px"
"label": "Favicon",
"info": "Displayed at 32 x 32px"
}
}
},
"brand_information": {
"name": "Brand information",
"settings": {
"paragraph": {
"content": "Add a brand description to your store's footer."
"content": "Displays in the footer's brand information block"
},
"brand_headline": {
"label": "Headline"
Expand All @@ -178,11 +177,10 @@
"name": "Typography",
"settings": {
"type_header_font": {
"label": "Font",
"info": "Selecting a different font can affect the speed of your store. [Learn more about system fonts.](https://help.shopify.com/manual/online-store/os/store-speed/improving-speed#fonts)"
"label": "Font"
},
"heading_scale": {
"label": "Font size scale"
"label": "Size scale"
},
"header__1": {
"content": "Headings"
Expand All @@ -191,11 +189,10 @@
"content": "Body"
},
"type_body_font": {
"label": "Font",
"info": "Selecting a different font can affect the speed of your store. [Learn more about system fonts.](https://help.shopify.com/manual/online-store/os/store-speed/improving-speed#fonts)"
"label": "Font"
},
"body_scale": {
"label": "Font size scale"
"label": "Size scale"
}
}
},
Expand All @@ -204,7 +201,7 @@
},
"variant_pills": {
"name": "Variant pills",
"paragraph": "Variant pills are one way of displaying your product variants. [Learn more](https://help.shopify.com/en/manual/online-store/themes/theme-structure/page-types#variant-picker-block)"
"paragraph": "Variant pills are one way of displaying your [product variants](https://help.shopify.com/manual/online-store/themes/theme-structure/page-types/product-pages#variant-picker-block)"
},
"inputs": {
"name": "Inputs"
Expand All @@ -214,7 +211,7 @@
},
"popups": {
"name": "Dropdowns and pop-ups",
"paragraph": "Affects areas like navigation dropdowns, pop-up modals, and cart pop-ups."
"paragraph": "Affects areas like navigation dropdowns and pop-up modals and carts"
},
"media": {
"name": "Media"
Expand All @@ -239,7 +236,7 @@
"label": "3D lift"
},
"label": "Hover effect",
"info": "Affects cards and buttons."
"info": "Affects cards and buttons"
}
}
},
Expand Down Expand Up @@ -290,58 +287,54 @@
"search_input": {
"name": "Search behavior",
"settings": {
"header": {
"content": "Search suggestions"
},
"predictive_search_enabled": {
"label": "Enable search suggestions"
"label": "Search suggestions"
},
"predictive_search_show_vendor": {
"label": "Show product vendor",
"info": "Visible when search suggestions enabled."
"label": "Product vendor",
"info": "Shown when search suggestions enabled"
},
"predictive_search_show_price": {
"label": "Show product price",
"info": "Visible when search suggestions enabled."
"label": "Product price",
"info": "Shown when search suggestions enabled"
}
}
},
"currency_format": {
"name": "Currency format",
"settings": {
"content": "Currency codes",
"paragraph": "Cart and checkout prices always show currency codes. Example: $1.00 USD.",
"paragraph": "Cart and checkout prices always show currency codes",
"currency_code_enabled": {
"label": "Show currency codes"
"label": "Currency codes"
}
}
},
"cart": {
"name": "Cart",
"settings": {
"cart_type": {
"label": "Cart type",
"label": "Type",
"drawer": {
"label": "Drawer"
},
"page": {
"label": "Page"
},
"notification": {
"label": "Popup notification"
"label": "Popup"
}
},
"show_vendor": {
"label": "Show vendor"
"label": "Vendor"
},
"show_cart_note": {
"label": "Enable cart note"
"label": "Cart note"
},
"cart_drawer": {
"header": "Cart drawer",
"collection": {
"label": "Collection",
"info": "Visible when cart drawer is empty."
"info": "Shown when cart is empty"
}
}
}
Expand All @@ -359,7 +352,7 @@
"content": "Grid"
},
"paragraph__grid": {
"content": "Affects areas with multiple columns or rows."
"content": "Affects areas with multiple columns or rows"
},
"spacing_grid_horizontal": {
"label": "Horizontal space"
Expand Down

0 comments on commit f271095

Please sign in to comment.