Skip to content

Large quote testimonial in WordPress

A single highlighted quote, with the name and role of its author.

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 -->
<figure class="quote">
        <span class="quote__mark" aria-hidden="true">“</span>
        <blockquote>
          <p>Notre nouveau site a doublé les demandes de devis en trois mois. Les clients nous disent qu'ils trouvent enfin nos réalisations et nos tarifs sans avoir à nous appeler.</p>
        </blockquote>
        <figcaption>
          <span class="quote__avatar" aria-hidden="true">SG</span>
          <span><strong>Sophie Garnier</strong>Gérante, Garnier Menuiserie</span>
        </figcaption>
      </figure>
<!-- /wp:html -->
style.css
:root {
  --quote-text: #1e1145;
  --quote-muted: #5b4c86;
  --quote-mark: #c4b5fd;
  --quote-avatar: #6d28d9;
  --quote-avatar-text: #ffffff;
  --demo-temoignage-citation-unique-bg: #f7f5ff;
  --demo-temoignage-citation-unique-text: #1e1145;
}

@media (prefers-color-scheme: dark) {
  :root.forge-follows-system:not([data-theme="light"]) {
temoignage-citation-unique.php
<?php
/**
 * Plugin Name: Forge, Témoignage en grande citation
 * Description: Une seule citation mise en valeur, avec le nom et la fonction de son auteur. Ajoute la composition « Témoignage en grande citation » à 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-temoignage-citation-unique
 *

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
  • Three customer reviews as cards, with star rating and customer tenure.

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

    • Tailwind
    • React
    • CSS
    • WordPress
    Component