From 9900cb0e909db4e61e22e53f37882c73270decee Mon Sep 17 00:00:00 2001 From: Katy Cobb Date: Fri, 20 Dec 2024 13:54:59 -0800 Subject: [PATCH] Search results --- locales/en.default.schema.json | 34 ++++++++++++------------- sections/main-search.liquid | 45 ++++++++++++++-------------------- 2 files changed, 34 insertions(+), 45 deletions(-) diff --git a/locales/en.default.schema.json b/locales/en.default.schema.json index bad031f65bc..41a57e5b92c 100644 --- a/locales/en.default.schema.json +++ b/locales/en.default.schema.json @@ -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": { @@ -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", @@ -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" } } }, diff --git a/sections/main-search.liquid b/sections/main-search.liquid index 6ce6ab498a1..7ad54da0a97 100644 --- a/sections/main-search.liquid +++ b/sections/main-search.liquid @@ -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" @@ -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", @@ -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", @@ -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", @@ -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"