Issue with featured collection on homepage- Prestige theme

Highlighted
Tourist
13 0 0

I am getting this message showing up (that isn't the heading or sub-heading). It only seems to appear on the 2nd, 3rd, 4th etc featured category I add. It wasn't always there. This is new. Help! "include usage is not allowed in this context."

 

Screen Shot 2020-03-26 at 10.46.17 PM.png

0 Likes
Highlighted
Shopify Partner
203 38 47

Hello @hp2020, share store link for better solution 

0 Likes
Tourist
13 0 0
cocoandlily.com
0 Likes
Highlighted
Pathfinder
76 7 24

Hi @hp2020 ,

Go to the collection-list.liquid.
Locate the code class="SectionHeader". This should be injected from there. There should be something within {{collection.title}} and class="SectionHeader__ButtonWrapper"

0 Likes
Highlighted
Tourist
13 0 0

Here is the code from that section:

 

{%- capture flickity_options -%}
{
"prevNextButtons": false,
"pageDots": {% if section.blocks.size > 1 %}true{% else %}false{% endif %},
"setGallerySize": true,
"wrapAround": true,
"watchCSS": true,
"dragThreshold": 8
}
{%- endcapture -%}

<section id="section-{{ section.id }}" data-section-id="{{ section.id }}" data-section-type="collection-list">
{%- capture collection_items -%}
{%- for block in section.blocks -%}
{%- assign collection = collections[block.settings.collection] -%}
{%- render 'collection-item', block: block, collection: collection, apply_overlay: block.settings.apply_overlay -%}
{%- endfor -%}
{%- endcapture -%}

{%- if section.settings.stack_on_mobile -%}
<div class="CollectionList CollectionList--grid {% if section.settings.add_spacing %}CollectionList--spaced{% endif %}">
{{ collection_items }}
</div>
{%- else -%}
<div class="Carousel Carousel--insideDots CollectionList {% if section.settings.add_spacing %}CollectionList--spaced{% endif %}" data-flickity-config='{{ flickity_options }}'>
{{ collection_items }}
</div>
{%- endif -%}
</section>

<style>
#section-{{ section.id }} .CollectionItem .Heading,
#section-{{ section.id }} .flickity-page-dots {
color: {{ section.settings.text_color }};
}

#section-{{ section.id }} .CollectionItem__Link {
color: {{ section.settings.button_color }};
border-color: {{ section.settings.text_color }};
}

#section-{{ section.id }} .CollectionItem__Link::before {
background-color: {{ section.settings.text_color }};
}

@media (-moz-touch-enabled: 0), (hover: hover) {
#section-{{ section.id }} .CollectionItem__Link:hover {
color: {{ section.settings.text_color }};
}
}
</style>

{% schema %}
{
"name": "Collection list",
"max_blocks": 18,
"settings": [
{
"type": "select",
"id": "image_size",
"label": "Image size",
"options": [
{
"value": "small",
"label": "Small"
},
{
"value": "normal",
"label": "Normal"
},
{
"value": "large",
"label": "Large"
}
],
"default": "normal"
},
{
"type": "checkbox",
"id": "add_spacing",
"label": "Add spacing",
"default": true
},
{
"type": "checkbox",
"id": "expand_collection",
"label": "Expand collections to fill row",
"default": false
},
{
"type": "checkbox",
"id": "stack_on_mobile",
"label": "Stack on mobile",
"default": true
},
{
"type": "color",
"id": "text_color",
"label": "Text",
"default": "#ffffff"
},
{
"type": "color",
"id": "button_color",
"label": "Button text",
"default": "#363636"
}
],
"blocks": [
{
"type": "collection",
"name": "Collection",
"settings": [
{
"type": "collection",
"id": "collection",
"label": "Collection"
},
{
"type": "image_picker",
"id": "image",
"label": "Image",
"info": "1120 x 1200px .jpg recommended"
},
{
"type": "select",
"id": "image_alignment",
"label": "Image alignment",
"options": [
{
"value": "top left",
"label": "Top left"
},
{
"value": "top center",
"label": "Top center"
},
{
"value": "top right",
"label": "Top right"
},
{
"value": "center left",
"label": "Middle left"
},
{
"value": "center center",
"label": "Middle center"
},
{
"value": "center right",
"label": "Middle right"
},
{
"value": "bottom left",
"label": "Bottom left"
},
{
"value": "bottom center",
"label": "Bottom center"
},
{
"value": "bottom right",
"label": "Bottom right"
}
],
"default": "center center"
},
{
"type": "select",
"id": "content_position",
"label": "Content position",
"options": [
{
"value": "middleLeft",
"label": "Middle left"
},
{
"value": "middleRight",
"label": "Middle right"
},
{
"value": "middleCenter",
"label": "Middle center"
},
{
"value": "bottomLeft",
"label": "Bottom left"
},
{
"value": "bottomRight",
"label": "Bottom right"
},
{
"value": "bottomCenter",
"label": "Bottom center"
}
],
"default": "bottomLeft"
},
{
"type": "text",
"id": "subheading",
"label": "Sub-heading",
"default": "Sub-heading"
},
{
"type": "text",
"id": "title",
"label": "Heading",
"default": "Collection name"
},
{
"type": "text",
"id": "button_text",
"label": "Button text",
"default": "View products"
},
{
"type": "url",
"id": "button_link",
"label": "Button link",
"info": "If none is set, collection URL is used."
},
{
"type": "checkbox",
"id": "apply_overlay",
"label": "Apply overlay on image",
"info": "This can improve text visibility.",
"default": true
}
]
}
],
"presets": [
{
"category": "Collection",
"name": "Collection list",
"settings": {},
"blocks": [
{
"type": "collection"
},
{
"type": "collection"
},
{
"type": "collection"
}
]
}
]
}
{% endschema %}


@jayanetty wrote:

Hi @hp2020 ,

Go to the collection-list.liquid.
Locate the code class="SectionHeader". This should be injected from there. There should be something within {{collection.title}} and class="SectionHeader__ButtonWrapper"


 

0 Likes