Skip to content

Social proof hero in WordPress

A bright, warm hero: highlighted promise, two buttons, an avatar stack with a rating out of 5, and on the right a customer quote surrounded by result chips.

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

hero-preuve-sociale.php
<?php
/**
 * Plugin Name: Forge, Hero preuve sociale
 * Description: Un hero clair et chaleureux : promesse surlignée, deux boutons, pile d'avatars avec note sur 5, et à droite un témoignage client entouré de pastilles de résultats. Ajoute la composition « Hero preuve sociale » à 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-hero-preuve-sociale
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "proof", "layout": {"type": "default"}} -->
<section class="wp-block-group proof"><!-- wp:group {"className": "proof__content", "layout": {"type": "default"}} -->
<div class="wp-block-group proof__content"><!-- wp:paragraph {"className": "proof__eyebrow"} -->
<p class="proof__eyebrow">Comptabilité des artisans et indépendants</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 1, "className": "proof__title"} -->
<h1 class="wp-block-heading proof__title">Vos comptes tenus en <span class="proof__mark">15 minutes</span> par mois</h1>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "proof__lead"} -->
<p class="proof__lead">Rapprochement bancaire automatique, factures conformes et un expert-comptable dédié qui vous répond en moins de 24 h.</p>
<!-- /wp:paragraph -->
<!-- wp:group {"className": "proof__actions", "layout": {"type": "default"}} -->
style.css
:root {
  --proof-bg: #fffbeb;
  --proof-text: #1c1917;
  --proof-muted: #57534e;
  --proof-pill: #fef3c7;
  --proof-pill-text: #713f12;
  --proof-highlight: #fde047;
  --proof-blob: #fde68a;
  --proof-star: #ca8a04;
  --proof-button: #facc15;
  --proof-button-hover: #eab308;
  --proof-card: #ffffff;

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

Hero sections components in WordPress
  • A dark hero where very large words, outlined or at low opacity, pass behind a two-column text. The animation is CSS only, with no script and no image.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A festival or fair header: dates, venue, featured artists, a real countdown to opening and ticket options.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Headline, service area, Google rating and job-site photo, with a direct call button and a short callback form (name, phone, need).

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Headline, promise and two actions on the left, vector illustration on the right.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A large serif composition, sober and composed, for liberal professions.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A powerful headline followed by a row of three reassuring figures.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component