Step indicator in WordPress
An order step indicator: finished steps clickable to go back, the current step announced, upcoming steps locked.
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
<?php
/**
* Plugin Name: Forge, Indicateur d’étapes
* Description: Un indicateur d’étapes de commande : étapes terminées cliquables pour revenir, étape en cours annoncée, étapes à venir verrouillées. Ajoute la composition « Indicateur d’étapes » à 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-indicateur-etapes
*<!-- wp:html -->
<section class="ide" data-ide aria-labelledby="ide-titre">
<h2 class="ide-title" id="ide-titre">Votre commande</h2>
<nav aria-label="Étapes de la commande">
<ol class="ide-list">
<li class="ide-step" data-ide-step="0">
<button class="ide-btn" type="button" data-ide-go="0">
<span class="ide-bubble" aria-hidden="true"><span class="ide-n">1</span><svg class="ide-check" viewBox="0 0 24 24" width="18" height="18"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span>
<span class="ide-name">Panier</span>
<span class="ide-sr" data-ide-state>, terminée</span>
</button>
</li>(() => {
if (!document.querySelector(".ide")) return;
document.querySelectorAll("[data-ide]").forEach((root) => {
const on = (el, type, fn) => el.addEventListener(type, fn);
const steps = [...root.querySelectorAll("[data-ide-step]")];
const panels = [...root.querySelectorAll("[data-ide-panel]")];
const prev = root.querySelector('[data-ide-move="-1"]');
const next = root.querySelector('[data-ide-move="1"]');
let current = steps.findIndex((s) => s.getAttribute("aria-current") === "step");
const show = (index, focus) => {
current = index;:root {
--ide-card: #ffffff;
--ide-text: #13261f;
--ide-muted: #4a5c55;
--ide-line: #cbd5d1;
--ide-soft: #f0f7f5;
--ide-accent: #0f766e;
--ide-accent-text: #ffffff;
--ide-halo: #ccfbf1;
--demo-indicateur-etapes-bg: #e8efec;
--demo-indicateur-etapes-text: #13261f;
}Free component: copy it freely, including for commercial projects.
Other breadcrumbs and pagination components in WordPress
Breadcrumbs and pagination components in WordPress
A bottom bar with Call, Directions and Free quote that tucks away while visitors read down the page and returns as soon as they scroll up. Built for tradespeople whose customers arrive on a phone.
- Tailwind
- React
- CSS
- WordPress

A slim bar at the top of the page with a message, a link and a close button; once closed, it stays hidden for the period you choose.
- Tailwind
- React
- CSS
- WordPress

A sticky sidebar table of contents for blog posts: it highlights the section being read, shows the reading time left and folds into a list under the title on mobile.
- Tailwind
- React
- CSS
- WordPress

A column of dots on the side of the page that follows the section being read and lets visitors jump to it, with a label on hover and focus.
- Tailwind
- React
- CSS
- WordPress

Tooltips in four positions that open on hover, tap and keyboard focus, and close with Escape, as WCAG requires.
- Tailwind
- React
- CSS
- WordPress

Quick access links that appear on the first Tab press to skip the header and menu, as required by the RGAA and WCAG.
- Tailwind
- React
- CSS
- WordPress