hi, i need to put my collection page descriptions after the products as they block the view on mobile. i tried moving it after endpginate line but it just disrupted the whole page. i know the code which i need to move but not sure where to putit.
it is here:
i want it here after products and on top of recently viewed:
here is the code:
{%- comment -%}We start by creating a lot of useful variables !{%- endcomment -%}
{%- assign color_label = ‘color,colour,couleur,cor,colore,farbe,색,色,カラー,färg,farve,szín,barva’ | split: ‘,’ -%}
{%- assign items_per_page = cart.attributes.collection_products_per_page | default: section.settings.default_products_per_page -%}
{%- assign quick_links_menu = section.settings.quick_links -%}
{%- if quick_links_menu.links.size > 0 or section.settings.show_filters and collection.filters != empty -%}
{%- assign has_filters = true -%}
{%- else -%}
{%- assign has_filters = false -%}
{%- endif -%}
{%- if has_filters -%}
{%- capture grid_classes -%}1/3–tablet-and-up 1/{{ section.settings.products_per_row }}–desk{%- endcapture -%}
{%- else -%}
{%- capture grid_classes -%}1/3–tablet 1/{{ section.settings.products_per_row }}–lap-and-up{%- endcapture -%}
{%- endif -%}
{%- assign view_mode = cart.attributes.collection_layout | default: section.settings.default_view_layout -%}
{%- assign sort_by = collection.sort_by | default: collection.default_sort_by -%}
{%- assign active_filters_count = 0 -%}
{%- for filter in collection.filters -%}
{%- if filter.type == ‘list’ -%}
{%- assign active_filters_count = active_filters_count | plus: filter.active_values.size -%}
{%- elsif filter.type == ‘price_range’ and filter.min_value.value or filter.max_value.value -%}
{%- assign active_filters_count = active_filters_count | plus: 1 -%}
{%- endif -%}
{%- endfor -%}
{%- capture section_settings -%}
{
“currentSortBy”: {{ sort_by | json }},
“defaultLayout”: {{ section.settings.default_view_layout | json }},
“defaultProductsPerPage”: {{ section.settings.default_products_per_page | json }},
“gridClasses”: {{ grid_classes | json }}
}
{%- endcapture -%}
- {{ 'general.breadcrumb.home' | t }} {%- render 'icon', icon: 'arrow-right' -%}
- {%- if collection.handle == 'all' -%} {{- 'collection.general.all_products' | t -}} {%- else -%} {{- collection.title -}} {%- endif -%}
{%- if has_filters -%}
{{ quick_links_menu.title }}
-
{%- for link in quick_links_menu.links -%}
-
{%- if link.links.size > 0 -%}
{%- capture link_id -%}filter-{% increment link_id %}{%- endcapture -%}
{{ link.title }} {% if link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ link.object.products_count }}){% endif %} {%- render 'icon', icon: 'arrow-bottom' -%}
{%- else -%} {{ link.title }} {% if link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ link.object.products_count }}){% endif %} {%- endif -%}
-
{%- for sub_link in link.links -%}
-
{%- if sub_link.links.size > 0 -%}
{%- capture link_id -%}filter-{% increment link_id %}{%- endcapture -%}
{{ sub_link.title }} {% if sub_link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ sub_link.object.products_count }}){% endif %} {%- render 'icon', icon: 'arrow-bottom' -%}
{%- else -%} {{ sub_link.title }} {% if sub_link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ sub_link.object.products_count }}){% endif %} {%- endif -%}
-
{%- for sub_sub_link in sub_link.links -%}
- {{ sub_sub_link.title }} {% if sub_sub_link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ sub_sub_link.object.products_count }}){% endif %} {%- endfor -%}
{%- endfor -%}
{%- endfor -%}
-
{%- if sub_link.links.size > 0 -%}
{%- capture link_id -%}filter-{% increment link_id %}{%- endcapture -%}
{{ sub_link.title }} {% if sub_link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ sub_link.object.products_count }}){% endif %} {%- render 'icon', icon: 'arrow-bottom' -%}
{%- if section.settings.show_filters and collection.filters != empty -%}
{%- if collection.current_type != blank or collection.current_vendor != blank -%}
{%- endif -%}
{{ 'collection.filter.all' | t }}
{%- for filter in collection.filters -%}
{%- if filter.type == ‘list’ -%}
{%- for filter_value in filter.active_values -%}
{%- assign active_filter_values = active_filter_values | plus: 1 -%}
{%- if active_filter_values > 0 -%}
{{ ‘collection.filter.clear_all’ | t }}
{%- endif -%}
{%- assign filter_label_downcase = filter.label | downcase -%}
{%- assign is_filter_expanded = false -%}
{%- if color_label contains filter_label_downcase and section.settings.show_filter_color_swatch -%}
{%- assign show_color_swatch = true -%}
{%- else -%}
{%- assign show_color_swatch = false -%}
{%- endif -%}
{%- if section.settings.open_group_filters_mode == ‘all_open’ or section.settings.open_group_filters_mode == ‘first_open’ and forloop.first -%}
{%- assign is_filter_expanded = true -%}
{%- endif -%}
' -%}
{%- for filter_value in filter.values -%}
{%- capture color_id -%}filter-color-{% increment color_index %}{%- endcapture -%}
{%- assign downcased_value = filter_value.label | downcase -%}
-
{%- for filter_value in filter.values -%}
-
{% render 'icon', icon: 'check' %}
{{ filter_value.label }} {% if section.settings.quick_links_show_products_count %}({{ filter_value.count }}){% endif %}
{%- endfor -%}
{%- when ‘price_range’ -%}
{%- assign min_value = filter.min_value.value | default: 0.0 | divided_by: 100.0 -%}
{%- assign max_value = filter.max_value.value | default: filter.range_max | divided_by: 100.0 -%}
{%- assign range_max = filter.range_max | divided_by: 100.0 | ceil -%}
{% assign lower_bound_progress = min_value | divided_by: range_max | times: 100.0 %}
{% assign higher_bound_progress = max_value | divided_by: range_max | times: 100.0 %}
-
{%- paginate collection.products by items_per_page -%}
{%- comment -%}
TOP PART (COLLECTION INFO + TOOLBAR)
{%- endcomment -%}
{%- if collection.all_products_count == 0 -%}
{{ collection.title }}
{{ 'collection.general.empty' | t }}
{%- if collection.handle == 'all' -%} {{- 'collection.general.all_products' | t -}} {%- else -%} {{- collection.title -}} {%- endif -%}
{%- assign offset = paginate.current_offset | plus: 1 -%}
{%- assign page_size = paginate.current_offset | plus: paginate.page_size | at_most: paginate.items -%}
{{ 'collection.general.products_count' | t: count: collection.all_products_count }}
{{ 'collection.general.showing_count' | t: offset: offset, page_size: page_size, count: paginate.items }}
{%- if collection.description != blank -%}
{%- assign allow_collapse_description = false -%}
{%- if section.settings.collapse_collection_description -%}
{%- assign allow_collapse_description = true -%}
{%- endif -%}
{%- if allow_collapse_description -%}
{{- ‘collection.general.view_more’ | t -}}
{%- endif -%}
{{ ‘collection.general.showing_count’ | t: offset: offset, page_size: page_size, count: paginate.items }}
{%- for option in collection.sort_options -%}
{%- if option.value == collection_sort_by -%}
{%- assign collection_sort_by_name = option.name -%}
{%- break -%}
{%- endif -%}
{%- endfor -%}
{%- if section.settings.default_view_layout == ‘grid’ -%}
{% render ‘icon’, icon: ‘grid’ %}
{% render ‘icon’, icon: ‘list’ %}
{%- else -%}
{% render ‘icon’, icon: ‘list’ %}
{% render ‘icon’, icon: ‘grid’ %}
{%- endif -%}
{%- comment -%}
MOBILE FILTERS
{%- endcomment -%}
{%- if has_filters and active_filters_count > 0 -%}
{%- if active_filters_count > 1 -%}
{{ ‘collection.filter.clear_all’ | t }}
{%- endif -%}
{{ ‘collection.general.results_count’ | t: count: collection.products_count }}
{%- comment -%}
COLLECTION PRODUCTS
{%- endcomment -%}
{%- if collection.products_count == 0 -%}
{{ 'collection.general.no_results' | t }}
{%- render ‘pagination’, paginate: paginate -%}
{%- endif -%}
{%- endpaginate -%}
{%- if has_filters -%}
<button class=“button button–transparent button–extra-small” data-action=“clear-filters” data-url=“{{ collection.url }}?sort_by={{ sort_by }}” {% if active_filters_count == 0 %}style=“display: none”{% endif %}>{{ ‘collection.filter.clear’ | t }}
{%- if collection.current_type != blank or collection.current_vendor != blank -%}
{%- endif -%}
{%- if quick_links_menu.links.size > 0 -%}
{%- capture link_id -%}filter-{% increment link_id %}{%- endcapture -%}
{{ quick_links_menu.title }}
-
{%- for link in quick_links_menu.links -%}
-
{%- if link.links.size > 0 -%}
{%- capture link_id -%}filter-{% increment link_id %}{%- endcapture -%}
{{ link.title }} {% if link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ link.object.products_count }}){% endif %} {%- render 'icon', icon: 'arrow-bottom' -%}
{%- else -%} {{ link.title }} {% if link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ link.object.products_count }}){% endif %} {%- endif -%}
-
{%- for sub_link in link.links -%}
-
{%- if sub_link.links.size > 0 -%}
{%- capture link_id -%}filter-{% increment link_id %}{%- endcapture -%}
{{ sub_link.title }} {% if sub_link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ sub_link.object.products_count }}){% endif %} {%- render 'icon', icon: 'arrow-bottom' -%}
{%- else -%} {{ sub_link.title }} {% if sub_link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ sub_link.object.products_count }}){% endif %} {%- endif -%}
-
{%- for sub_sub_link in sub_link.links -%}
- {{ sub_sub_link.title }} {% if sub_sub_link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ sub_sub_link.object.products_count }}){% endif %} {%- endfor -%}
{%- endfor -%}
{%- endfor -%}
-
{%- if sub_link.links.size > 0 -%}
{%- capture link_id -%}filter-{% increment link_id %}{%- endcapture -%}
{{ sub_link.title }} {% if sub_link.type == 'collection_link' and section.settings.quick_links_show_products_count %}({{ sub_link.object.products_count }}){% endif %} {%- render 'icon', icon: 'arrow-bottom' -%}
{%- if section.settings.show_filters and collection.filters != empty -%}
{{ 'collection.filter.all' | t }}
{%- for filter in collection.filters -%}
{%- if template.suffix == ‘brand’ and filter.param_name == ‘filter.p.vendor’ and filter.values.size == 1 -%}
{%- continue -%}
{%- endif -%}
{%- assign filter_label_downcase = filter.label | downcase -%}
{%- if color_label contains filter_label_downcase and section.settings.show_filter_color_swatch -%}
{%- assign show_color_swatch = true -%}
{%- else -%}
{%- assign show_color_swatch = false -%}
{%- endif -%}
{%- if filter.type == ‘list’ and filter.active_values.size > 0 -%}
{{ filter.active_values | map: ‘label’ | join: ', ’ }}
{%- elsif filter.type == ‘price_range’ and filter.min_value.value or filter.max_value.value -%}
{{ filter.min_value.value | default: 0 | money_without_trailing_zeros }} - {{ filter.max_value.value | default: filter.range_max | money_without_trailing_zeros }}
{%- endif -%}
{%- render ‘icon’, icon: ‘arrow-bottom’ -%}
' -%}
{%- for filter_value in filter.values -%}
{%- capture color_id -%}filter-color-{% increment color_index %}{%- endcapture -%}
{%- assign downcased_value = filter_value.label | downcase -%}
-
{%- for filter_value in filter.values -%}
-
{% render 'icon', icon: 'check' %}
{{ filter_value.label }} {% if section.settings.quick_links_show_products_count %}({{ filter_value.count }}){% endif %}
{%- endfor -%}
{%- when ‘price_range’ -%}
{%- assign min_value = filter.min_value.value | default: 0.0 | divided_by: 100.0 -%}
{%- assign max_value = filter.max_value.value | default: filter.range_max | divided_by: 100.0 -%}
{%- assign range_max = filter.range_max | divided_by: 100.0 | ceil -%}
{% assign lower_bound_progress = min_value | divided_by: range_max | times: 100.0 %}
{% assign higher_bound_progress = max_value | divided_by: range_max | times: 100.0 %}
-
{%- comment -%}
QUICK VIEW CONTAINER
{%- endcomment -%}
{% schema %}
{
“name”: “Collection”,
“settings”: [
{
“type”: “checkbox”,
“id”: “show_collection_image”,
“label”: “Show collection image”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “collapse_collection_description”,
“label”: “Collapse long description”,
“default”: false
},
{
“type”: “select”,
“id”: “collection_image_size”,
“label”: “Collection image size”,
“options”: [
{
“value”: “preserve_ratio”,
“label”: “Original image ratio”
},
{
“value”: “small”,
“label”: “Small”
},
{
“value”: “medium”,
“label”: “Medium”
},
{
“value”: “large”,
“label”: “Large”
}
],
“default”: “small”
},
{
“type”: “select”,
“id”: “products_per_row”,
“label”: “Products per row (desktop)”,
“options”: [
{
“value”: “3”,
“label”: “3”
},
{
“value”: “4”,
“label”: “4”
}
],
“default”: “4”
},
{
“type”: “range”,
“id”: “default_products_per_page”,
“label”: “Default products per page”,
“min”: 24,
“max”: 48,
“step”: 12,
“default”: 24
},
{
“type”: “select”,
“id”: “default_view_layout”,
“label”: “Default view layout”,
“options”: [
{
“value”: “grid”,
“label”: “Grid”
},
{
“value”: “list”,
“label”: “List”
}
],
“default”: “grid”
},
{
“type”: “select”,
“id”: “show_quick_buy”,
“label”: “Show quick buy on…”,
“options”: [
{
“value”: “list”,
“label”: “List view”
},
{
“value”: “list_grid”,
“label”: “List and grid views”
}
],
“default”: “list”
},
{
“type”: “select”,
“id”: “show_quick_view”,
“label”: “Show quick view on…”,
“options”: [
{
“value”: “list”,
“label”: “List view”
},
{
“value”: “list_grid”,
“label”: “List and grid views”
}
],
“default”: “list”
},
{
“type”: “header”,
“content”: “Sidebar”
},
{
“type”: “link_list”,
“id”: “quick_links”,
“label”: “Quick links”
},
{
“type”: “checkbox”,
“id”: “quick_links_show_products_count”,
“label”: “Show products count”,
“info”: “Only for collection links and filters”,
“default”: true
},
{
“type”: “header”,
“content”: “Filtering”
},
{
“type”: “checkbox”,
“id”: “show_filters”,
“label”: “Show filters”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_filter_color_swatch”,
“label”: “Show filter color swatch”,
“info”: “Requires a filter named "Color".”,
“default”: true
},
{
“type”: “select”,
“id”: “open_group_filters_mode”,
“label”: “Filter opening mode (desktop)”,
“options”: [
{
“value”: “all_closed”,
“label”: “All closed”
},
{
“value”: “all_open”,
“label”: “All open”
},
{
“value”: “first_open”,
“label”: “First open”
}
],
“default”: “all_closed”
}
]
}
{% endschema %}

