Special Offer: Buy All 48 Premium WordPress Themes for Just $74.99. Learn more

How to Reduce Number of Testimonial Items in Carousel Widgets

reduce number of testimonial items

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

About the Author

Tihomir Ivanov is a WordPress web developer, founder of tishonator.com, a fan of Linux and Open Source, a gym enthusiast, a vegan, a fan of minimalism, good movies and books :)

Leave a Reply