• A setting for the number of displayed items for mobile devices would be nice. I have added the following javascript in the settings javascript input box to handle mobile devices and displaying a certain number of items in the slider if it is a mobile device. I had added seven items in a slider and on a mobile device that puts items on top of each other.

    let details = navigator.userAgent;

    /* Creating a regular expression
    containing some mobile devices keywords
    to search it in details string*/
    let regexp = /android|iphone|kindle|ipad/i;

    /* Using test() method to search regexp in details
    it returns boolean value*/
    let isMobileDevice = regexp.test(details);

    if (isMobileDevice) {
    const myElement = document.getElementById(“gpsc–products-55983”);
    myElement.setAttribute(“data-slidesperview”, “3”);
    }

    do note that the number in gpsc–products-55983 is the id of the slider for my slider and could be something else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pluginic

    (@wpqode)

    Dear @alijens,

    Firstly, let us express our gratitude for your initiative in not only suggesting a new feature for our WooCommerce Product Slider Carousel, but also providing us with your own coding solution. We truly appreciate the time and effort you’ve put into this.

    Your feature request “Number of items in slider on mobile devices” is indeed a valuable suggestion. It’s users like you, who actively engage and contribute, that help us improve and evolve our product to better suit our users’ needs.

    I’m pleased to inform you that we have added your suggestion to our feature development queue. As we strive to continuously enhance our plugin, your input has a significant impact on our development roadmap.

    Currently, our team is working on a few ongoing tasks. As soon as these are completed, we will begin working on this feature request. I assure you, your suggestion has our attention and will not be overlooked.

    However, it’s also important to mention that we might not implement the feature exactly as per the code you’ve provided. Our development team will review it and might come up with a slightly different approach that aligns more closely with our plugin’s design and overall functionality. Nevertheless, your contribution will serve as a guiding point for our team.

    Thank you for your understanding and patience.

    Best Regards,
    Pluginic Team

    Thread Starter alijens

    (@alijens)

    Any news regarding this? The sollution I had does not work any more. Setting data-slidesperview=”3″ does not change the amount of displayed items anymore.

    Thread Starter alijens

    (@alijens)

    When my solution did not work it was a syntax error.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Feature request. Number of items in slider on mobile devices’ is closed to new replies.