Skip to content

Rated review grid in WordPress

Three customer reviews as cards, with star rating and customer tenure.

Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in WordPress

pattern.html
<!-- wp:html -->
<ul class="reviews">
        <li>
          <figure>
            <p class="reviews__stars"><span aria-hidden="true">★★★★★</span><span class="reviews__hidden">Note : 5 sur 5</span></p>
            <blockquote><p>Accueil chaleureux et coupe parfaitement réalisée. Léa prend le temps d'écouter avant de couper.</p></blockquote>
            <figcaption><strong>Margaux L.</strong>Cliente depuis 2024</figcaption>
          </figure>
        </li>
        <li>
          <figure>
            <p class="reviews__stars"><span aria-hidden="true">★★★★★</span><span class="reviews__hidden">Note : 5 sur 5</span></p>
style.css
:root {
  --rev-bg: #ffffff;
  --rev-line: #f3d3df;
  --rev-text: #3b0a1e;
  --rev-muted: #7a3a54;
  --rev-star: #b4234f;
  --demo-temoignages-grille-notes-bg: #fdf4f7;
  --demo-temoignages-grille-notes-text: #3b0a1e;
}

@media (prefers-color-scheme: dark) {
  :root.forge-follows-system:not([data-theme="light"]) {
temoignages-grille-notes.php
<?php
/**
 * Plugin Name: Forge, Grille d'avis notés
 * Description: Trois avis clients en cartes, avec la note étoilée et l'ancienneté du client. Ajoute la composition « Grille d'avis notés » à l'éditeur de blocs.
 * Version: 1.0.0
 * Requires at least: 6.6
 * Requires PHP: 8.1
 * Author: Forge
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: forge-temoignages-grille-notes
 *

Free component: copy it freely, including for commercial projects.

Testimonials components in WordPress
  • A customer reviews section with average rating and star distribution; each bar is a button that filters the reviews with that rating.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A reviews section for local shops: average star rating out of 5, a star breakdown that animates into view and the three latest reviews signed with a first name and a town.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A CSS-drawn video poster with a play button, the testimonial's key quote, its author, and the timestamped transcript in a collapsible panel.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A row of client references as wordmarks, followed by a representative quote.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single highlighted quote, with the name and role of its author.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component