Plans as rows in WordPress
Plans stacked as horizontal rows, readable at a glance on mobile and desktop.
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:html -->
<ul class="rows">
<li>
<div><h2>Entretien</h2><p>Vidange, filtres et contrôle 40 points</p></div>
<p class="rows__price">129 €</p>
<a href="#rendez-vous">Réserver<span class="rows__hidden"> : entretien</span></a>
</li>
<li>
<div><h2>Révision complète</h2><p>Entretien constructeur et carnet tamponné</p></div>
<p class="rows__price">229 €</p>
<a href="#rendez-vous">Réserver<span class="rows__hidden"> : révision complète</span></a>
</li>:root {
--rows-bg: #ffffff;
--rows-line: #ece3c2;
--rows-text: #29230e;
--rows-muted: #5c5233;
--rows-accent: #ca8a04;
--rows-accent-text: #1f1600;
--rows-ring: #a16207;
--demo-tarifs-formules-lignes-bg: #fffcf0;
--demo-tarifs-formules-lignes-text: #29230e;
}
<?php
/**
* Plugin Name: Forge, Formules en lignes
* Description: Des formules empilées en lignes horizontales, lisibles d'un trait sur mobile comme sur ordinateur. Ajoute la composition « Formules en lignes » à 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-tarifs-formules-lignes
*Free component: copy it freely, including for commercial projects.
Other pricing tables components in WordPress
Pricing tables components in WordPress
A table comparing what each license includes: update and support length, response time, number of sites, client hand-over. A switch extends support and updates the prices.
- Tailwind
- React
- CSS
- WordPress

Three one-time payment licenses, what each one allows line by line (client site, number of sites, resale) and the recommended plan highlighted.
- Tailwind
- React
- CSS
- WordPress

Two offers and the cumulative cost over 1, 3 and 5 years of a monthly subscription and a one-time purchase, with the month the purchase pays for itself.
- Tailwind
- React
- CSS
- WordPress

A session pack grid that computes the price per session and the money saved, with an optional reduced rate.
- Tailwind
- React
- CSS
- WordPress

Service cards with “from” prices, duration and a quote request button, filterable by family.
- Tailwind
- React
- CSS
- WordPress

Three plans side by side, the middle one highlighted.
- Tailwind
- React
- CSS
- WordPress