Skip to content

Testimonial Cards with Customer Photos and Stars

Bootstrap 5 testimonial grid with customer photos, names, job titles, star ratings and an average review score badge.

Also known as: customer review cards, testimonial grid, client reviews section, star rating reviews

Testimonial Cards with Customer Photos and Stars live demo

Open in new tab

Bootstrap 5 code (HTML, CSS)

A Bootstrap 5 testimonial section with six customer cards, each showing a round customer photo, name, job title, star rating and a short quote. A rating badge next to the heading sums up the average score. Use it on landing pages, pricing pages or above a sign-up form to build trust.

How it works

The block is a section.tps-section with a warm off-white background. The header is a flex row: the eyebrow and h2.tps-title on the left and the .tps-summary pill with the average score on the right. On phones the two parts stack.

The cards sit in a Bootstrap grid with row-cols-1 row-cols-md-2 row-cols-lg-3, so you get one column on phones, two on tablets and three on desktops. Each card is a semantic figure.tps-card containing the .tps-stars row, a blockquote.tps-quote and a figcaption.tps-author with the img.tps-photo and the name and role. The cards use h-100 and the quote has flex-grow: 1, so the author rows line up at the bottom even when the quotes have different lengths. Curly quotation marks are added with ::before and ::after, so the markup stays clean.

Stars are Bootstrap Icons: bi-star-fill, bi-star-half and bi-star, which makes ratings like 4.5 or 4 easy to show. The second card has the tps-card--featured modifier, which flips it to a deep green background to break up the grid. Cards lift slightly on hover. No JavaScript is needed.

The customer photos come from Unsplash and are loaded as 112 px face crops for sharp 56 px avatars on high-density screens. Replace them with photos of your own customers, with their permission.

Customization

  • --tps-accent in .tps-section: changes the eyebrow, the average score and the background of the featured card.
  • --tps-star in .tps-section: sets the star color, for example a brand yellow.
  • --tps-bg and --tps-card: change the section background and the card color.
  • --tps-radius: makes the cards sharper or rounder.
  • Move tps-card--featured to another figure.tps-card, or remove it to make all cards equal.
  • row-cols-lg-3 on the grid row: change it to row-cols-lg-2 for larger cards or row-cols-xl-4 for a denser wall.
  • Swap the icon classes inside .tps-stars and update its aria-label to change a rating.

Use cases

  • SaaS landing pages: six customer quotes with photos and job titles build trust right below the hero
  • Pricing pages: an average review score badge next to the heading reassures visitors before they pick a plan
  • Sign-up pages: star-rated testimonials sit above a form to reduce hesitation
  • Agency and freelancer sites: client photos, roles and short quotes present social proof in a clean grid

Accessibility

Each star row is a single role="img" element with an aria-label such as "Rated 4.5 out of 5", so screen readers hear one clear sentence instead of five icons. Quotes use blockquote inside figure with figcaption for the author, which is the recommended pattern for attributed quotations. Every photo has descriptive alt text, width and height to prevent layout shift, loading="lazy" and decoding="async". Text colors meet WCAG AA contrast on both the white and the green card. The hover lift is disabled under prefers-reduced-motion: reduce.

Usage notes

Requires Bootstrap 5 and Bootstrap Icons. If the reviews come from real customers, consider adding Review structured data so search engines can show rating stars.

Testimonial Cards with Customer Photos and Stars at a glance

Framework
Bootstrap 5
Code
HTML, CSS
JavaScript
Only Bootstrap 5's own script
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Testimonials
License
Free for personal and commercial use

Questions about this template

Can I use the Testimonial Cards with Customer Photos and Stars code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. Only Bootstrap 5's own JavaScript is used, and the download already includes it.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Testimonial Cards with Customer Photos and Stars – free Bootstrap 5 testimonial template
Testimonial Cards with Customer Photos and Stars · free Bootstrap 5 testimonial template

More Testimonials

Testimonial with Large Portrait Photo – free Tailwind CSS testimonial template

Testimonial with Large Portrait Photo

Featured Tailwind CSS testimonial with a large customer portrait, offset frame, serif quote, star rating and result metrics.

Single Testimonial with Large Quote – free WordPress testimonial template

Single Testimonial with Large Quote

A single testimonial for the block editor with a large centered customer quote, round portrait, name, role and company wordmark on a deep navy background.

Testimonial Cards with Avatars – free WordPress testimonial template

Testimonial Cards with Avatars

Testimonial cards for the block editor: three customer reviews with five-star ratings, round portrait avatars, names and roles on a warm light background.

Customer Testimonials Section for Shopify – free Shopify testimonial template

Customer Testimonials Section for Shopify

A Shopify section for customer quotes with star ratings, avatars and linked products, shown as a grid or a scrolling row with previous and next buttons.