Hi, hope everyone is keeping well.
I’m using Shopify’s free theme “Ride”. I’m making a logo list using slick library, it is working fine but the entire website is sliding horizontally with it. I’m not sure what I’m doing wrong. I followed this tutorial: https://www.youtube.com/watch?v=7DqtFl2KaSg&t=458s. Shopify url: https://rojan-engine-gearboxes.myshopify.com/
My code:
{{ 'slick.min.js' | asset_url | script_tag }}
{%- if section.blocks.size > 0 -%}
<i>
{%- render 'arrow-left' -%}</i>
<i>
{%- render 'arrow-right' -%}</i>
{%- for block in section.blocks -%}
{%- if block.settings.link != blank -%}
{%- endif -%}
{%- if block.settings.image != blank -%}
{% comment %}
{{ block.settings.image | img_url: '160x160', scale: 2 | img_tag: block.settings.image.alt }}
{%- else -%}
{{ 'logo' | placeholder_svg_tag: 'placeholder-svg' }}
{% endcomment %}
{%- else -%}
{{ 'image' | placeholder_svg_tag: 'placeholder-svg' }}
{%- endif -%}
{%- if block.settings.link != blank -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{% schema %}
{
"name": "Slick slider",
"class": "index-section",
"settings": [
],
"blocks": [
{
"type": "logo_image",
"name": "Logo",
"settings": [
{
"type": "image_picker",
"id": "image",
"label": "Image"
},
{
"type": "url",
"id": "link",
"label": "Link",
"info": "Optional"
}
]
}
],
"presets": [
{
"name": "Slick slider",
"category": "Image",
"blocks": [
{
"type": "logo_image"
},
{
"type": "logo_image"
},
{
"type": "logo_image"
},
{
"type": "logo_image"
}
]
}
]
}
{% endschema %}
Javascript:
$(document).ready(function () {
$('.carousel-slide').each(function() {
var num_slides = 7;
$(this).slick({
slidesToShow: num_slides
});
});
});
Any help will be greatly appreciated. Thank you!

