Skip to content

Commit

Permalink
Search results
Browse files Browse the repository at this point in the history
  • Loading branch information
katycobb committed Dec 20, 2024
1 parent a9496ee commit 9900cb0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 45 deletions.
34 changes: 15 additions & 19 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2453,8 +2453,17 @@
"name": "Search results",
"settings": {
"columns_desktop": {
"label": "Number of columns on desktop"
"label": "Columns"
},
"columns_mobile": {
"label": "Mobile columns",
"options__1": {
"label": "1 column"
},
"options__2": {
"label": "2 columns"
}
},
"image_ratio": {
"label": "Image ratio",
"options__1": {
Expand All @@ -2468,10 +2477,10 @@
}
},
"show_secondary_image": {
"label": "Show second image on hover"
"label": "Second image on hover"
},
"show_vendor": {
"label": "Show vendor"
"label": "Vendor"
},
"show_rating": {
"label": "Product rating",
Expand All @@ -2481,26 +2490,13 @@
"content": "Product card"
},
"header__2": {
"content": "Blog card",
"info": "Blog card styles also apply to page cards in search results. To change card styles update your theme settings."
"content": "Blog card"
},
"article_show_date": {
"label": "Show date"
"label": "Date"
},
"article_show_author": {
"label": "Show author"
},
"header_mobile": {
"content": "Mobile Layout"
},
"columns_mobile": {
"label": "Number of columns on mobile",
"options__1": {
"label": "1 column"
},
"options__2": {
"label": "2 columns"
}
"label": "Author"
}
}
},
Expand Down
45 changes: 19 additions & 26 deletions sections/main-search.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,22 @@
"default": 4,
"label": "t:sections.main-search.settings.columns_desktop.label"
},
{
"type": "select",
"id": "columns_mobile",
"default": "2",
"label": "t:sections.main-search.settings.columns_mobile.label",
"options": [
{
"value": "1",
"label": "t:sections.main-search.settings.columns_mobile.options__1.label"
},
{
"value": "2",
"label": "t:sections.main-search.settings.columns_mobile.options__2.label"
}
]
},
{
"type": "header",
"content": "t:sections.main-search.settings.header__1.content"
Expand Down Expand Up @@ -410,8 +426,7 @@
}
],
"default": "default",
"label": "t:sections.all.image_shape.label",
"info": "t:sections.all.image_shape.info"
"label": "t:sections.all.image_shape.label"
},
{
"type": "checkbox",
Expand Down Expand Up @@ -461,8 +476,7 @@
}
],
"default": "horizontal",
"label": "t:sections.main-collection-product-grid.settings.filter_type.label",
"info": "t:sections.main-collection-product-grid.settings.filter_type.info"
"label": "t:sections.main-collection-product-grid.settings.filter_type.label"
},
{
"type": "checkbox",
Expand All @@ -472,8 +486,7 @@
},
{
"type": "header",
"content": "t:sections.main-search.settings.header__2.content",
"info": "t:sections.main-search.settings.header__2.info"
"content": "t:sections.main-search.settings.header__2.content"
},
{
"type": "checkbox",
Expand All @@ -487,26 +500,6 @@
"default": false,
"label": "t:sections.main-search.settings.article_show_author.label"
},
{
"type": "header",
"content": "t:sections.main-search.settings.header_mobile.content"
},
{
"type": "select",
"id": "columns_mobile",
"default": "2",
"label": "t:sections.main-search.settings.columns_mobile.label",
"options": [
{
"value": "1",
"label": "t:sections.main-search.settings.columns_mobile.options__1.label"
},
{
"value": "2",
"label": "t:sections.main-search.settings.columns_mobile.options__2.label"
}
]
},
{
"type": "header",
"content": "t:sections.all.padding.section_padding_heading"
Expand Down

0 comments on commit 9900cb0

Please sign in to comment.