Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21654

    Hi guys,

    This is an awesome theme. My client wants me to change the home page product slider to only go in 1 direction. I.e., he doesn’t like the slider reversing back after all featured products have gone through the screen. I have my own jquery carousel script that I can implement but wanted to ask you first:

    1. Is this possible within the current theme scripts

    2. If not, can you give me some guidance on the files that control product slider so I can try and implement my slider code.

    Thanks again

    SD

    #112603

    You can try to modify the setSlideNumber methode in replete/js/avia.js based on your requirements. Search for following code:

    if(i+1 > slideCount) { i = 0; } else
    if(i < 0) {i = slideCount-1; }

    if(!stop) // prevents transition if the next slide and the current slide are the same
    {
    container.methods.change();
    }

    - i.e. one possible “hack” would be:

    if(i+1 > slideCount) { i = 0; stop = true; } else
    if(i < 0) {i = slideCount-1; }

    if(!stop) // prevents transition if the next slide and the current slide are the same
    {
    container.methods.change();
    }

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Product Slider on Home Pgae’ is closed to new replies.