How to add slider in Related products in Dawn

How to add slider in Related products in Dawn

NOT1
Shopify Partner
175 2 63

NOT1_0-1724657556139.png

 

 How can i change this like this (as how i have for collection):

NOT1_1-1724657556090.png

 

 

Replies 3 (3)

saim007
Shopify Partner
602 74 102

@NOT1 Yeah you can do this by putting slider code in the you may also like section.

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂

Small_Task_Help
Shopify Partner
775 25 68

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

To Get Shopify Experts Help, E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert Agency
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad
NOT1
Shopify Partner
175 2 63

I dont know much about these can u pls explain me step by step and give the codes