Hey, I would like to add the button “View all” behind some of my featured collections (Turbo Theme)
Can someone please help me?
https://structureparis.com
pw : cewleu
What I have :
What I want below :
Thanks
Hey, I would like to add the button “View all” behind some of my featured collections (Turbo Theme)
Can someone please help me?
https://structureparis.com
pw : cewleu
What I have :
What I want below :
Thanks
sorry for any issue can you please sent featured collection section code so i will check and update
Where can I find this section ?
yes please go to edit code >>>> section >>> featured collection
{% include ‘include-featured-collection’ %} {% schema %} { “name”: “Featured collection”, “class”: “shopify-section–featured-collection”, “settings”: [ { “type”: “text”, “id”: “title”, “label”: “Heading”, “default”: “Featured collection” }, { “type”: “checkbox”, “id”: “collection_description”, “label”: “Show description”, “default”: true }, { “type”: “collection”, “id”: “collection”, “label”: “Collection” }, { “type”: “radio”, “id”: “collection_style”, “label”: “Collection layout”, “default”: “grid”, “options”: [ { “value”: “slider”, “label”: “Slider” }, { “value”: “grid”, “label”: “Grid” } ] }, { “type”: “header”, “content”: “Products” }, { “type”: “range”, “id”: “products_per”, “label”: “Products per row”, “min”: 2, “max”: 7, “step”: 1, “default”: 3 }, { “type”: “range”, “id”: “products_limit”, “label”: “Limit products”, “min”: 2, “max”: 50, “step”: 1, “default”: 9 }, { “type”: “header”, “content”: “Advanced” }, { “type”: “paragraph”, “content”: “Learn more” }, { “type”: “text”, “id”: “css_class”, “label”: “CSS Class” }, { “type”: “textarea”, “id”: “custom_css”, “label”: “Custom CSS” } ], “presets”: [{ “name”: “Featured collection”, “category”: “Collection” }], “templates”: [ “index”, “product”, “page” ] } {% endschema %}
{% include ‘include-featured-collection’ %}
{% schema %}
{
“name”: “Featured collection”,
“class”: “shopify-section–featured-collection”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Featured collection”
},
{
“type”: “checkbox”,
“id”: “collection_description”,
“label”: “Show description”,
“default”: true
},
{
“type”: “collection”,
“id”: “collection”,
“label”: “Collection”
},
{
“type”: “radio”,
“id”: “collection_style”,
“label”: “Collection layout”,
“default”: “grid”,
“options”: [
{
“value”: “slider”,
“label”: “Slider”
},
{
“value”: “grid”,
“label”: “Grid”
}
]
},
{
“type”: “header”,
“content”: “Products”
},
{
“type”: “range”,
“id”: “products_per”,
“label”: “Products per row”,
“min”: 2,
“max”: 7,
“step”: 1,
“default”: 3
},
{
“type”: “range”,
“id”: “products_limit”,
“label”: “Limit products”,
“min”: 2,
“max”: 50,
“step”: 1,
“default”: 9
},
{
“type”: “header”,
“content”: “Advanced”
},
{
“type”: “paragraph”,
“content”: “Learn more”
},
{
“type”: “text”,
“id”: “css_class”,
“label”: “CSS Class”
},
{
“type”: “textarea”,
“id”: “custom_css”,
“label”: “Custom CSS”
}
],
“presets”: [{
“name”: “Featured collection”,
“category”: “Collection”
}],
“templates”: [
“index”,
“product”,
“page”
]
}
{% endschema %}
{% comment %}
** Featured collection - dynamic **
{% comment %} Assign object as block or section {% endcomment %}
{% if type == ‘block’ %}
{%- assign object = block -%}
{% else %}
{%- assign object = section -%}
{% endif %}
{%- assign id = object.id -%}
{% comment %} Content settings {% endcomment %}
{%- assign title = object.settings.title | escape -%}
{%- assign collection = collections[object.settings.collection] -%}
{% comment %} End content settings {% endcomment %}
{% comment %} Advanced {% endcomment %}
{%- assign css_class = object.settings.css_class -%}
{%- assign custom_css = object.settings.custom_css -%}
{% comment %} Section specific CSS {% endcomment %}
{% style %}
{%
render ‘css-loop’,
css: custom_css,
id: id
%}
{% endstyle %}
{% if collection == blank %}
{%- assign section_onboarding = true -%}
{% comment %} Assign product length to be selected limit for onboarding {% endcomment %}
{%- assign products_length = object.settings.products_limit | plus: 0 -%}
{% else %}
{%- assign section_onboarding = false -%}
{% endif %}
{% if object.settings.collection_description and collection.description != blank %}
{% if object.settings.collection_style == ‘slider’ %}
thanks for code can you please update this
{% comment %}
** Featured collection - dynamic **
- Draggable section
{% endcomment %}
{% comment %} Assign object as block or section {% endcomment %}
{% if type == 'block' %}
{%- assign object = block -%}
{% else %}
{%- assign object = section -%}
{% endif %}
{%- assign id = object.id -%}
{% comment %} Content settings {% endcomment %}
{%- assign title = object.settings.title | escape -%}
{%- assign collection = collections[object.settings.collection] -%}
{% comment %} End content settings {% endcomment %}
{% comment %} Advanced {% endcomment %}
{%- assign css_class = object.settings.css_class -%}
{%- assign custom_css = object.settings.custom_css -%}
{% comment %} Section specific CSS {% endcomment %}
{% style %}
{%
render 'css-loop',
css: custom_css,
id: id
%}
{% endstyle %}
{% if collection == blank %}
{%- assign section_onboarding = true -%}
{% comment %} Assign product length to be selected limit for onboarding {% endcomment %}
{%- assign products_length = object.settings.products_limit | plus: 0 -%}
{% else %}
{%- assign section_onboarding = false -%}
{% endif %}
{% if object.settings.collection_style == 'slider' %}
{% if section_onboarding == false %}
{% if collection.products.size > 0 %}
{% render 'product-slider',
limit: object.settings.products_limit,
products: collection.products,
per_slide: object.settings.products_per,
featured_collection: collection
%}
{% endif %}
{% else %}
{% for i in (1..object.settings.products_limit) %}
{%- assign per_slide_num = object.settings.products_per -%}
{% endfor %}
{% endif %}
{% else %}
{% if section_onboarding == false %}
{% else %}
{% endif %}
{% endif %}
View all
            Thanks but the text “view all” appears but you cannot click on it to see the whole collection. And I wish it was a button.
give me store url
https://structureparis.com/
password: cewleu
did you find something ? @KetanKumar
Thanks, but I would like that the “View all” redirect to the specific collection and not all the collection.
And I wish that the “View all” was a button
yes you have just change ulr as you like
Either you can add direct link in code with this code
      View all
    
or if u want to add dynamically then you have to create a json for link and call it in your html.
And then you can manage the link from customize section
      View all
    
/*add this code in schema*/
 {
      "type": "url",
      "id": "link",
       "label": "LINK"
  }