Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
@NOT1 Yeah you can do this by putting slider code in the you may also like section.
Hi,
Add a Slider Library
Add CSS/JS Files
Edit the Related Products Section
Initialize the Slider
Code example
<script type="text/javascript">
$(document).ready(function(){
$('.related-products-slider').slick({
slidesToShow: 4, // Number of products to show
slidesToScroll: 1, // Number of products to scroll per click
autoplay: true, // Enable auto-slide
autoplaySpeed: 3000, // Auto-slide speed in milliseconds
arrows: true, // Enable navigation arrows
dots: false, // Enable pagination dots
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 3,
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 2,
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
}
}
]
});
});
</script>
Use CSS for style
I dont know much about these can u pls explain me step by step and give the codes
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024