Here are the details of testimonial section rule
{
"settings":[
{
"id": "slider",
"label": "Slider",
"type": "custom",
"elements": [
{
"id": "heading1",
"type": "heading",
"label": "Desktop",
"info": "Customize Slider Settings for desktop/large devices",
"default": ""
},
{
"id": "desktopAutoplay",
"label": "Autoplay",
"info": "Autoplay your Slides",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "desktopAutoplaySpeed",
"label": "Autoplay Slide Speed",
"info": "Customize your Slides delay",
"type": "select",
"options": [
{"label": "1000ms","value": "1000"},
{"label": "2000ms","value": "2000"},
{"label": "3000ms","value": "3000"},
{"label": "4000ms","value": "4000"},
{"label": "5000ms","value": "5000"}
],
"default": "3000"
},
{
"id": "desktopSlidesToShow",
"label": "Slides to Show",
"info": "Customize number of Slides to show",
"type": "select",
"options": [
{"label": "1","value": "1"},
{"label": "2","value": "2"},
{"label": "3","value": "3"},
{"label": "4","value": "4"},
{"label": "5","value": "5"}
],
"default": "3"
},
{
"id": "desktopSlidesToScroll",
"label": "Slides to Scroll",
"info": "Customize number of Slides to scroll at once",
"type": "select",
"options": [
{"label": "1","value": "1"},
{"label": "2","value": "2"},
{"label": "3","value": "3"},
{"label": "4","value": "4"},
{"label": "5","value": "5"}
],
"default": "2"
},
{
"id": "desktopSlideSpeed",
"label": "Slides Speed",
"info": "Customize speed of sliding on click",
"type": "select",
"options": [
{"label": "100ms","value": "100"},
{"label": "200ms","value": "200"},
{"label": "300ms","value": "300"},
{"label": "400ms","value": "400"},
{"label": "500ms","value": "500"}
],
"default": "300"
},
{
"id": "desktopArrows",
"label": "Arrows",
"info": "Turn on/off slider arrows",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "desktopDots",
"label": "Dots",
"info": "Turn on/off slider dots",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "desktopInfinite",
"label": "Infinite Sliding",
"info": "Turn on/off infinite sliding of slides",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "heading2",
"type": "heading",
"label": "Tablet",
"info": "Customize Slider Settings for tablet devices",
"default": ""
},
{
"id": "tabletAutoplay",
"label": "Autoplay",
"info": "Autoplay your Slides",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "tabletAutoplaySpeed",
"label": "Autoplay Slide Speed",
"info": "Customize your Slides delay",
"type": "select",
"options": [
{"label": "1000ms","value": "1000"},
{"label": "2000ms","value": "2000"},
{"label": "3000ms","value": "3000"},
{"label": "4000ms","value": "4000"},
{"label": "5000ms","value": "5000"}
],
"default": "3000"
},
{
"id": "tabletSlidesToShow",
"label": "Slides to Show",
"info": "Customize number of Slides to show",
"type": "select",
"options": [
{"label": "1","value": "1"},
{"label": "2","value": "2"},
{"label": "3","value": "3"},
{"label": "4","value": "4"},
{"label": "5","value": "5"}
],
"default": "2"
},
{
"id": "tabletSlidesToScroll",
"label": "Slides to Scroll",
"info": "Customize number of Slides to scroll at once",
"type": "select",
"options": [
{"label": "1","value": "1"},
{"label": "2","value": "2"},
{"label": "3","value": "3"},
{"label": "4","value": "4"},
{"label": "5","value": "5"}
],
"default": "2"
},
{
"id": "tabletSlideSpeed",
"label": "Slides Speed",
"info": "Customize speed of sliding on click",
"type": "select",
"options": [
{"label": "100ms","value": "100"},
{"label": "200ms","value": "200"},
{"label": "300ms","value": "300"},
{"label": "400ms","value": "400"},
{"label": "500ms","value": "500"}
],
"default": "300"
},
{
"id": "tabletArrows",
"label": "Arrows",
"info": "Turn on/off slider arrows",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "tabletDots",
"label": "Dots",
"info": "Turn on/off slider dots",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "tabletInfinite",
"label": "Infinite Sliding",
"info": "Turn on/off infinite sliding of slides",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "heading3",
"type": "heading",
"label": "Mobile",
"info": "Customize Slider Settings for mobile devices",
"default": ""
},
{
"id": "mobileAutoplay",
"label": "Autoplay",
"info": "Autoplay your Slides",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "mobileAutoplaySpeed",
"label": "Autoplay Slide Speed",
"info": "Customize your Slides delay",
"type": "select",
"options": [
{"label": "1000ms","value": "1000"},
{"label": "2000ms","value": "2000"},
{"label": "3000ms","value": "3000"},
{"label": "4000ms","value": "4000"},
{"label": "5000ms","value": "5000"}
],
"default": "3000"
},
{
"id": "mobileSlidesToShow",
"label": "Slides to Show",
"info": "Customize number of Slides to show",
"type": "select",
"options": [
{"label": "1","value": "1"},
{"label": "2","value": "2"},
{"label": "3","value": "3"},
{"label": "4","value": "4"},
{"label": "5","value": "5"}
],
"default": "1"
},
{
"id": "mobileSlidesToScroll",
"label": "Slides to Scroll",
"info": "Customize number of Slides to scroll at once",
"type": "select",
"options": [
{"label": "1","value": "1"},
{"label": "2","value": "2"},
{"label": "3","value": "3"},
{"label": "4","value": "4"},
{"label": "5","value": "5"}
],
"default": "1"
},
{
"id": "mobileSlideSpeed",
"label": "Slides Speed",
"info": "Customize speed of sliding on click",
"type": "select",
"options": [
{"label": "100ms","value": "100"},
{"label": "200ms","value": "200"},
{"label": "300ms","value": "300"},
{"label": "400ms","value": "400"},
{"label": "500ms","value": "500"}
],
"default": "300"
},
{
"id": "mobileArrows",
"label": "Arrows",
"info": "Turn on/off slider arrows",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "mobileDots",
"label": "Dots",
"info": "Turn on/off slider dots",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
},
{
"id": "mobileInfinite",
"label": "Infinite Sliding",
"info": "Turn on/off infinite sliding of slides",
"type": "select",
"options": [
{"label": "True","value": "true"},
{"label": "False","value": "false"}
],
"default": "true"
}
]
}
],
"rules":{
"title": {
"label": "Title",
"type": "quickEditor",
"show": "yes",
"default": "Testimonials."
},
"subtitle": {
"label": "Subtitle",
"type": "quickEditor",
"show": "yes",
"default": "Education gives you superhuman strength"
},
"listitem": {
"fields": {
"item_name": {
"label": "Item Title",
"type": "quickEditor",
"show": "yes"
},
"item_subtitle":{
"label": "Item Subtitle",
"type": "quickEditor",
"show": "yes"
},
"item_media": {
"label": "Item Media",
"type": "singlefile",
"show": "yes"
},
"item_description": {
"label": "Item Description",
"type": "simpleEditor",
"show": "yes"
},
"stars":{
"label": "Item Stars",
"type": "number",
"show": "yes"
}
},
"default" : [
{
"item_media": "31.jpg",
"item_description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem explicabo possimus reprehenderit aspernatur amet odio quos, in sed iusto dolor, voluptas labore. Quam assumenda nesciunt unde id eveniet possimus vero?",
"item_name": "Emilia",
"item_subtitle": "Designer",
"stars": "4"
},
{
"item_media": "35.jpg",
"item_description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem explicabo possimus reprehenderit aspernatur amet odio quos, in sed iusto dolor, voluptas labore. Quam assumenda nesciunt unde id eveniet possimus vero?",
"item_name": "John Doe",
"item_subtitle": "Designer",
"stars": "4"
},
{
"item_media": "32.jpg",
"item_description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem explicabo possimus reprehenderit aspernatur amet odio quos, in sed iusto dolor, voluptas labore. Quam assumenda nesciunt unde id eveniet possimus vero?",
"item_name": "Maisie",
"item_subtitle": "Designer",
"stars": "4"
},
{
"item_media": "35.jpg",
"item_description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem explicabo possimus reprehenderit aspernatur amet odio quos, in sed iusto dolor, voluptas labore. Quam assumenda nesciunt unde id eveniet possimus vero?",
"item_name": "Kevin Smith",
"item_subtitle": "Designer",
"stars": "4"
}
]
}
}
}
Here is an example of testimonials.jw:
<section class="testimonials {{ section.colors ? section.colors }}" id="{{section.id}}">
<div class="container-fluid">
{% if title or subtitle %}
<div class="row">
<div class="col-md-12">
<div class="testimonials_headng">
{% if title %}<div class="fontStyle6 heading_title">{{ title }}</div>{% endif %}
{% if subtitle %}<div class="fontStyle8">{{ subtitle }}</div>{% endif %}
</div>
</div>
</div>
{% endif %}
{% if listitem %}
<div class="hellows">
{% for key, item in listitem %}
<div class="testimonials_style">
{% if item.stars %}
<div class="testimonials_icons">
{% for i in 0..5 %}
{% if i < item.stars and i < 5 %}
<i class="fa-solid fa-star"></i>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if item.item_description %}<div class="testimonials_t fontStyle8">{{ item.item_description }}</div>{% endif %}
{% if item.item_name or item.item_media or item.item_subtitle %}
<div class="testimonials_img">
{% if item.item_media %}<img src="{{ item.item_media }}" alt="{{ item.item_media.alt }}">{% endif %}
{% if item.item_name or item.item_subtitle %}
<div class="testimonials_text">
{% if item.item_name %}<div class="fontStyle3">{{ item.item_name }}</div>{% endif %}
{% if item.item_subtitle %}<span class="fontStyle8">{{ item.item_subtitle }}</span>{% endif %}
</div>
{% endif %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
</section>
try {
$('#{{section.id}} .hellows').slick({
centerMode:false,
autoplay: {{ section.slider.desktopAutoplay?section.slider.desktopAutoplay:'true'}},
autoplaySpeed: {{ section.slider.desktopAutoplaySpeed?section.slider.desktopAutoplaySpeed:'2000'}},
slidesToShow: {{ section.slider.desktopSlidesToShow?section.slider.desktopSlidesToShow:'3'}},
slidesToScroll: {{ section.slider.desktopSlidesToScroll?section.slider.desktopSlidesToScroll:'2'}},
speed: {{ section.slider.desktopSlideSpeed?section.slider.desktopSlideSpeed:'300'}},
arrows: {{ section.slider.desktopArrows?section.slider.desktopArrows:'true'}},
dots: {{ section.slider.desktopDots?section.slider.desktopDots:'true'}},
infinite: {{ section.slider.desktopInfinite?section.slider.desktopInfinite:'true'}},
responsive: [
{
breakpoint: 992,
settings: {
autoplay: {{ section.slider.tabletAutoplay?section.slider.tabletAutoplay:'true'}},
autoplaySpeed: {{ section.slider.tabletAutoplaySpeed?section.slider.tabletAutoplaySpeed:'2000'}},
slidesToShow: {{ section.slider.tabletSlidesToShow?section.slider.tabletSlidesToShow:'2'}},
slidesToScroll: {{ section.slider.tabletSlidesToScroll?section.slider.tabletSlidesToScroll:'2'}},
speed: {{ section.slider.tabletSlideSpeed?section.slider.tabletSlideSpeed:'300'}},
arrows: {{ section.slider.tabletArrows?section.slider.tabletArrows:'true'}},
dots: {{ section.slider.tabletDots?section.slider.tabletDots:'true'}},
infinite: {{ section.slider.tabletInfinite?section.slider.tabletInfinite:'true'}},
}
},
{
breakpoint: 700,
settings: {
autoplay: {{ section.slider.mobileAutoplay?section.slider.mobileAutoplay:'true'}},
autoplaySpeed: {{ section.slider.mobileAutoplaySpeed?section.slider.mobileAutoplaySpeed:'2000'}},
slidesToShow: {{ section.slider.mobileSlidesToShow?section.slider.mobileSlidesToShow:'1'}},
slidesToScroll: {{ section.slider.mobileSlidesToScroll?section.slider.mobileSlidesToScroll:'1'}},
speed: {{ section.slider.mobileSlideSpeed?section.slider.mobileSlideSpeed:'300'}},
arrows: {{ section.slider.mobileArrows?section.slider.mobileArrows:'true'}},
dots: {{ section.slider.mobileDots?section.slider.mobileDots:'true'}},
infinite: {{ section.slider.mobileInfinite?section.slider.mobileInfinite:'true'}},
}
}
]
});
}
catch(err) {
console.log(err.message);
}
</script>
Here is a preview of testimonials section: