Hi ShanifAtApteo,
Thanks for your reply. I’m afraid I have tried to swap this but I may have done it in the wrong place. I have provided the code within the section below. I would like this feature to work on all collections except the one with the class of “collection-valentines”
{%- assign showReviews = section.settings.enable_reviews -%}
{%- assign showSort = section.settings.enable_sort -%}
{%- assign enableSwatches = settings.color_swatches -%}
{% comment %} Featured image {% endcomment %}
{%- assign showFeaturedImage = section.settings.show_featured_image -%}
{%- assign featuredImage = section.settings.featured_image -%}
{%- assign featuredHeader = section.settings.featured_heading -%}
{%- assign featuredText = section.settings.featured_text -%}
{%- assign featuredButtonText = section.settings.featured_button_text -%}
{%- assign featuredButtonLink = section.settings.featured_button_link -%}
{%- assign featuredColorText = section.settings.featured_color_text -%}
{%- assign featuredColorOverlay = section.settings.featured_color_overlay -%}
{%- assign featuredOverlayOpacity = section.settings.featured_overlay_opacity | times: 0.01 -%}
{% assign product_limit = section.settings.product_limit %}
{% if showFeaturedImage %}
{% assign product_limit = product_limit | minus: 1 %}
{% endif %}
{%- assign showTags = false -%}
{%- assign showGroupTags = false -%}
{%- if collection.tags.size > 0 -%}
{%- if section.settings.filter_mode == 'group' -%}
{%- assign showGroupTags = true -%}
{%- elsif section.settings.filter_mode == 'tag'-%}
{%- assign showTags = true -%}
{%- endif -%}
{%- endif -%}
{%- assign transparency_class = '' -%}
{%- if section.settings.transparent-%}
{%- assign transparency_class = 'hero__content--transparent' -%}
{%- endif -%}
{%- case section.settings.grid -%}
{%- when 2 -%}
{%- assign grid_strings = 'large-up--one-half medium--one-half small--one-half' -%}
{%- when 3 -%}
{%- assign grid_strings = 'large-up--one-third medium--one-third small--one-half' -%}
{%- when 4 -%}
{%- assign grid_strings = 'large-up--one-quarter medium--one-half small--one-half' -%}
{%- when 5 -%}
{%- assign grid_strings = 'large-up--one-fifth medium--one-third small--one-half' -%}
{%- else -%}
{%- assign grid_strings = 'large-up--one-sixth medium--one-third small--one-half' -%}
{%- endcase -%}
{%- paginate collection.products by product_limit -%}
{%- endpaginate -%}
{% schema %}
{
"name": "Collection page",
"settings": [
{
"type": "checkbox",
"id": "enable_sort",
"label": "Show sorting",
"default": false
},
{
"type": "select",
"label": "Filter mode",
"id": "filter_mode",
"info": "Filters by group requires specific tag formatting. [Learn more](https://help.shopify.com/manual/using-themes/themes-by-shopify/supply#product-tips-tips-specific)",
"default": "tag",
"options": [
{ "label": "Hidden", "value": "hidden" },
{ "label": "By tag", "value": "tag" },
{ "label": "By group", "value": "group" }
]
},
{
"type": "header",
"content": "Title and Description"
},
{
"type": "checkbox",
"id": "show_title",
"label": "Show collection title",
"default": true
},
{
"type": "checkbox",
"id": "show_description",
"label": "Show collection description",
"default": true
},
{
"type": "select",
"id": "text_color",
"label": "Text color",
"default": "text-dark",
"options": [
{ "value": "text-light", "label": "White"},
{ "value": "text-dark", "label": "Dark"}
],
"info": "If no Collection image body text color will be used"
},
{
"type": "select",
"id": "flex_align",
"label": "Text alignment",
"default": "align--middle-left",
"options": [
{ "value": "align--top-left", "label": "Top left" },
{ "value": "align--top-right", "label": "Top right" },
{ "value": "align--middle-left", "label": "Center left" },
{ "value": "align--middle-center", "label": "Center center" },
{ "value": "align--middle-right", "label": "Center right" },
{ "value": "align--bottom-left", "label": "Bottom left" },
{ "value": "align--bottom-right", "label": "Bottom right" }
]
},
{
"type": "checkbox",
"id": "transparent",
"label": "Transparent text background",
"default": false
},
{
"type": "header",
"content": "Collection image"
},
{
"type": "checkbox",
"id": "show_image",
"label": "Show collection image",
"default": true
},
{
"type": "select",
"id": "banner_layout",
"label": "Layout",
"default": "overlay",
"options": [
{ "value": "inline", "label": "Inline" },
{ "value": "overlay", "label": "Overlay" }
]
},
{
"type": "select",
"id": "height",
"label": "Image height",
"default": "screen-height-one-third",
"options": [
{ "value": "screen-height-one-half", "label": "1/2 of screen"},
{ "value": "screen-height-one-third", "label": "1/3 of screen"},
{ "value": "five-fifty-height-hero ", "label": "550px" },
{ "value": "four-fifty-height-hero", "label": "450px" },
{ "value": "three-fifty-height-hero", "label": "350px" },
{ "value": "two-fifty-height-hero", "label": "250px" },
{ "value": "image-height", "label": "Image height" }
]
},
{
"type": "checkbox",
"id": "parallax",
"default": false,
"label": "Enable parallax scroll"
},
{
"type": "range",
"id": "overlay_opacity",
"label": "Opacity",
"min": 0,
"max": 90,
"step": 5,
"unit": "%",
"default": 0
},
{
"type": "color",
"id": "overlay_color",
"label": "Overlay color",
"default": "#000"
},
{
"type": "header",
"content": "Products grid"
},
{
"type": "range",
"id": "grid",
"min": 2,
"max": 6,
"step": 1,
"label": "Products per row",
"default": 4
},
{
"type": "range",
"id": "product_limit",
"min": 1,
"max": 50,
"step": 1,
"label": "Products per page",
"default": 36
},
{
"type": "checkbox",
"id": "enable_reviews",
"label": "Show review stars",
"info": "Install Shopify's free [Product Reviews app](https://apps.shopify.com/product-reviews) before enabling this option.",
"default": false
},
{
"type": "header",
"content": "Featured image"
},
{
"type": "checkbox",
"id": "show_featured_image",
"default": false,
"label": "Show featured image"
},
{
"type": "image_picker",
"id": "featured_image",
"label": "Image"
},
{
"type": "text",
"id": "featured_heading",
"label": "Heading",
"default":"Use this image showcase promotional content."
},
{
"type": "richtext",
"id": "featured_text",
"label": "Text",
"default":"
Elaborate on it with rich text
"
},
{
"type": "text",
"id": "featured_button_text",
"label": "Button label",
"default":"Learn More"
},
{
"type": "url",
"id": "featured_button_link",
"label": "Button link"
},
{
"type": "color",
"id": "featured_color_text",
"label": "Text",
"default": "#ffffff"
},
{
"type": "color",
"id": "featured_color_overlay",
"label": "Overlay",
"default": "#222222"
},
{
"type": "range",
"id": "featured_overlay_opacity",
"label": "Overlay opacity",
"step": 1,
"max": 95,
"min": 0,
"unit": "%",
"default": 10
}
]
}
{% endschema %}
Thanks again!