contacts

Get All 146 Premium WordPress Themes for Just $59.99
One-Time Payment: Unlimited Use Across Unlimited Domains, Plus Free Lifetime Updates! Learn more

How to Reduce Number of Testimonial Items in Carousel Widgets

How to Reduce Number of Testimonial Items in Carousel Widgets

Our premium themes comes with built-in custom post type of Testimonials. It allows to add testimonials easily from the Admin Panel. Then you can display them into your website using the ‘Testimonials’ widget.

By default, the widget displays 4 items at once. In case you have less testimonial items, you may want to display less items at once (i.e. 2). Here are instructions how it can be done:

  1. Login to Admin Panel
  2. Navigate to Left Menu -> Appearance -> Theme Editor
  3. Open YourTheme/js/utilities
  4. Find and Replace the following code:

    jQuery(‘.jcarousel’)
    .jcarousel({
    visible : visibleEls,
    scroll : 1
    });

    with:

    jQuery(‘.jcarousel’).not(‘#testimonials’)
    .jcarousel({
    visible : visibleEls,
    scroll : 1
    });

    jQuery(‘#testimonials’)
    .jcarousel({
    visible : 2,
    scroll : 1
    });

    Note: if you want to display 3 items (instead of 2), replace ‘visible : 2’ with ‘visible : 3’

  5.  Save changes