Overview
The custom testimonials component displays customer reviews in an elegant carousel format. Each testimonial includes a customer avatar, star rating, review text, and customer name.Location
Component path
Configuration
Intwilight.json, this component is identified by key 541cc423-90c7-4230-8a33-a0342cfde4ad.
Available fields
Collection of testimonials (min: 1, max: 30)
Customer name displayed below the testimonial text
Customer avatar image URL. Recommended size: 68×68 pixels
Star rating from 1 to 5
The testimonial review text
Usage example
Template structure
Slider configuration
The testimonials slider includes:Centers the active slide
Shows one testimonial at a time
Applies testimonials-specific styling
Positions navigation controls outside the slider
Automatically cycles through testimonials
Testimonial structure
Each testimonial card contains:Avatar section
- 68×68 pixel circular avatar
- Lazy loading for performance
- Fallback alt text if no name provided
Text section
- Review text at top
- Customer name and rating below
- Responsive text sizing
Quote icon
A decorative quote SVG icon appears in each testimonial:Default examples
The component comes with 4 default testimonials:-
Nada Al-Husseini - 5 stars
”Received it today and it turned out beautiful, excited to try it ❤️” -
Khaled Al-Ahmad - 5 stars
”I bought from here for my kids and honestly it’s unbeatable 👏” -
Khaled Al-Masudi - 5 stars
”They’re amazing, solve problems. 👌” -
Abdulaziz Al-Yami - 5 stars
”I love this store and their classy customer service ❤️”
Styling classes
The component uses these main CSS classes:.s-block--testimonials: Main container styling.s-block--custom-testimonials: Custom testimonials variant.s-reviews-container: Reviews wrapper.s-reviews-header: Section heading.s-reviews-testimonial: Individual testimonial card.s-reviews-testimonial__inner: Inner card content.s-reviews-testimonial__avatar: Avatar container.s-reviews-testimonial__text: Text content area.s-reviews-testimonial__icon: Quote icon styling
Header translation
The section title uses Salla’s translation system:Rating stars
Rating display uses the Salla web component:- Small size variant
- Dynamic value from testimonial data
- Flexbox layout alignment
Accessibility
- Semantic
<h1>for section title - Semantic
<h2>for customer names - Proper alt text for avatars
- Fallback alt text pattern: “testimonial-”
- SVG includes
<title>element
Responsive design
The component is fully responsive:- Container constrains width
- Single testimonial per view
- Centered alignment
- Text sizing adjusts:
text-xs xs:text-sm - Fixed slide width of 830px with overflow handling
Testimonials auto-play by default, creating an engaging showcase of customer satisfaction. You can display up to 30 testimonials in the carousel.