Storytelling figures in WordPress
Four tinted paper cards pinned askew with tape on a dotted background: each figure of the venue's story has its line drawing, its title and its sentence.
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
The code in WordPress
<!-- wp:group {"tagName": "section", "className": "tale", "layout": {"type": "default"}} -->
<section class="wp-block-group tale"><!-- wp:group {"className": "tale__head", "layout": {"type": "default"}} -->
<div class="wp-block-group tale__head"><!-- wp:paragraph {"className": "tale__kicker"} -->
<p class="tale__kicker">Notre histoire</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "tale__title"} -->
<h2 class="wp-block-heading tale__title">La maison en quelques <em>chiffres</em></h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "tale__lede"} -->
<p class="tale__lede">Quatre souvenirs épinglés au mur de la salle, pour raconter d'où vient ce qu'il y a dans votre assiette.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --><?php
/**
* Plugin Name: Forge, Chiffres racontés
* Description: Quatre fiches en papier teinté, épinglées de travers avec un ruban adhésif sur un fond à pois : chaque chiffre de l'histoire du lieu a son dessin au trait, son titre et sa phrase. Ajoute la composition « Chiffres raconté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-stats-chiffres-editoriaux
*:root {
--tale-text: #2a1410;
--tale-muted: #6b4a3e;
--tale-accent: #9f1d1d;
--tale-dots: #e2d3c0;
--tale-tape: rgb(214 190 150 / 0.75);
--tale-shadow: rgb(70 35 10 / 0.35);
--demo-stats-chiffres-editoriaux-bg: #f4ede4;
--demo-stats-chiffres-editoriaux-text: #2a1410;
}
@media (prefers-color-scheme: dark) {Free component: copy it freely, including for commercial projects.
Other statistics components in WordPress
Statistics components in WordPress
A client area page for a small business website: sidebar, four metrics (visits, requests, reply rate and reply time) with their change, an SVG line chart per period and a filterable table of the latest messages, with no chart library.
- Tailwind
- React
- CSS
- WordPress

Three semicircle gauges whose needle swings to the value, with figure, label and source readable as text, in pure CSS.
- Tailwind
- React
- CSS
- WordPress

A row of guarantees (ten-year insurance, free quote, call-out within 24 hours, RGE and Qualibat labels) that reassures visitors right below the call to action.
- Tailwind
- React
- CSS
- WordPress

Four key figures in cards that count up from zero to their value when the section scrolls into view, with icon, unit and label.
- Tailwind
- React
- CSS
- WordPress

Key figures band
FreeFour key figures in a row, each with its caption, separated by thin rules.
- Tailwind
- React
- CSS
- WordPress