Skip to content

Video testimonial with transcript in WordPress

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

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:group {"tagName": "section", "className": "vtesti", "layout": {"type": "default"}} -->
<section class="wp-block-group vtesti"><!-- wp:html -->
<a class="vtesti__poster" href="#video-lea-moreau">
          <span class="vtesti__art" aria-hidden="true"><span class="vtesti__sun"></span><span class="vtesti__person"><span class="vtesti__head"></span><span class="vtesti__shoulders"></span></span><span class="vtesti__desk"></span><span class="vtesti__laptop"></span></span>
          <span class="vtesti__play" aria-hidden="true"><svg viewBox="0 0 24 24" width="30" height="30" fill="currentColor" aria-hidden="true"><path d="M8 5.5v13l11-6.5z"/></svg></span>
          <span class="vtesti__caption">Regarder le témoignage de Léa <span class="vtesti__duration">2 min 14, sous-titré</span></span>
        </a>
<!-- /wp:html -->
<!-- wp:group {"className": "vtesti__body", "layout": {"type": "default"}} -->
<div class="wp-block-group vtesti__body"><!-- wp:paragraph {"className": "vtesti__eyebrow"} -->
<p class="vtesti__eyebrow">Ils se sont reconvertis</p>
<!-- /wp:paragraph -->
style.css
:root {
  --vtesti-text: #1e1035;
  --vtesti-muted: #5b4b7a;
  --vtesti-accent: #6d28d9;
  --vtesti-accent-strong: #5b21b6;
  --vtesti-card: #ffffff;
  --vtesti-line: #e4dcf7;
  --vtesti-soft: #ede9fe;
  --vtesti-shadow: rgb(76 29 149 / 0.5);
  --demo-temoignage-video-bg: #f8f5ff;
  --demo-temoignage-video-text: #1e1035;
}
temoignage-video.php
<?php
/**
 * Plugin Name: Forge, Témoignage vidéo avec transcription
 * Description: Une affiche de vidéo dessinée en CSS avec bouton de lecture, la citation forte du témoignage, son auteur, et la transcription horodatée dans un volet dépliable. Ajoute la composition « Témoignage vidéo avec transcription » à 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-video
 *

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
  • 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
  • A single highlighted quote, with the name and role of its author.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component