Vertical timeline in WordPress
A simple vertical timeline to trace a company's history, with date, title and description.
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": "vt", "layout": {"type": "default"}} -->
<section class="wp-block-group vt"><!-- wp:heading {"level": 2} -->
<h2 class="wp-block-heading">Notre histoire</h2>
<!-- /wp:heading -->
<!-- wp:html -->
<ol>
<li>
<time datetime="2014">2014</time>
<h3>Création à Bordeaux</h3>
<p>Deux associés, un garage et un premier client : une cave à vins du quartier Saint-Michel.</p>
</li>
<li>:root {
--vt-text: #0b1b3a;
--vt-muted: #46577a;
--vt-line: #c9d6f2;
--vt-dot: #1d4ed8;
--vt-dot-ring: #f8faff;
--vt-date: #1d4ed8;
--demo-timeline-verticale-bg: #f8faff;
--demo-timeline-verticale-text: #0b1b3a;
}
@media (prefers-color-scheme: dark) {<?php
/**
* Plugin Name: Forge, Frise chronologique verticale
* Description: Une frise verticale simple pour retracer l'histoire d'une entreprise, avec date, titre et description. Ajoute la composition « Frise chronologique verticale » à 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-timeline-verticale
*Free component: copy it freely, including for commercial projects.
Other timelines components in WordPress
Timelines components in WordPress
Changelog
FreeA per-version changelog, with date and New, Improved or Fixed labels.
- Tailwind
- React
- CSS
- WordPress