@dmwwebartisan
alignment is centered now.
But I also want to add price comparison in the file
like below
Below is the Section- liquid code of this slider
Please suggest where to add price comparison code
{%- capture flickity_options -%}
{
“prevNextButtons”: true,
“pageDots”: false,
“contain”: true,
“cellAlign”: “left”,
“groupCells”: true,
“arrowShape”: {“x0”: 20, “x1”: 60, “y1”: 40, “x2”: 60, “y2”: 35, “x3”: 25}
}
{%- endcapture -%}
{% if section.settings.title != blank %}
{{ section.settings.title | escape }}
{% endif %}
{%- assign collection = collections[section.settings.collection] -%}
{%- assign product_limit = section.settings.product_count -%}
{% for product in collection.products limit: product_limit %}
{% endfor %}
.featured-collection-slider{
padding-left: 55px;
padding-right: 55px;
max-width: 1200px;
margin: 0 auto;
}
.featured-collection-slider .carousel-cell{
width:33%;
padding: 0 15px;
display: block;
}
.flickity-button:disabled{
pointer-events: all!important;
}
@media screen and (max-width: 920px){
.featured-collection-slider{
padding-left: 15px;
padding-right: 15px;
}
.featured-collection-slider .carousel-cell{
width:50%;
}
}
@media screen and (max-width: 767px){
.featured-collection-slider .carousel-cell{
width:100%;
}
}
{% schema %}
{
“name”: “Collection Slider”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Featured Collection”
},
{
“type”: “collection”,
“id”: “collection”,
“label”: “Collection”
},
{
“type”: “range”,
“id”: “product_count”,
“min”: 4,
“max”: 16,
“label”: “Number of products to display”,
“default”: 4
}
],
“presets”: [
{
“category”: “Collection”,
“name”: “Collection Slider”,
“settings”: {}
}
]
}
{% endschema %}
@dmwwebartisan