Re: How to add collection and product slider on scroll bar and button in this slider

How to add collection and product slider on scroll bar and button in this slider

Aleksander22
Explorer
115 0 40

Hi,

I really wanted to add scroll bar in collection slider and also product slider but dont know how to do it. I want it to place just below the slider. Im sending the example picture how I wanted it to looks like. And also I want the button in this collection if this possible to add

Aleksander22_0-1721039295405.png

I would be really greatful for help 

 

Replies 5 (5)

polo_msweb
Shopify Partner
18 1 4

Hi @Aleksander22,

This is Polo From MS  Web Designer. 
I would love to assist you with your query.

Could you please share your store URL? so that we can check and  get back to you with the proper solution. 

If you have any doubt, please feel free to ask.

Regards
Polo


If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Speed Optimization and Any Custom Shopify tasks
email: task4store@mswebdesigner.com
Download Free Shopify Speed Optimization Guide book for 2024 

Aleksander22
Explorer
115 0 40

Here is link:  https://112479-08.myshopify.com

 

And Password: mowfla

 

Small_Task_Help
Shopify Partner
771 25 68

Hi,

 

You need to work on 3 things HTML structure,CSS and Javascript

 

Example of HTML Struture 

<div class="slider-container">
    <div class="slider">
        <div class="slide"> <!-- Each slide represents a collection or product -->
            <h3>Slide 1</h3>
            <p>Content for slide 1</p>
        </div>
        <div class="slide">
            <h3>Slide 2</h3>
            <p>Content for slide 2</p>
        </div>
        <!-- Add more slides as needed -->
    </div>
    <div class="slider-navigation">
        <button class="prev">Prev</button>
        <button class="next">Next</button>
    </div>
</div>

Then do the styling using CSS

 

example of jQuery/javascript

$(document).ready(function() {
    var slideWidth = $('.slide').outerWidth(); // Width of each slide
    var slideCount = $('.slide').length; // Number of slides
    var currentSlide = 0;

    $('.next').click(function() {
        if (currentSlide < slideCount - 1) {
            currentSlide++;
            $('.slider').css('transform', 'translateX(' + (-currentSlide * slideWidth) + 'px)');
        }
    });

    $('.prev').click(function() {
        if (currentSlide > 0) {
            currentSlide--;
            $('.slider').css('transform', 'translateX(' + (-currentSlide * slideWidth) + 'px)');
        }
    });
});

 

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
Aleksander22
Explorer
115 0 40

Thanks for respond. Can you guide me step by step how to do it because i have no idea.

Small_Task_Help
Shopify Partner
771 25 68

Some coding is there , you can hire Shopify developer 

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