Skip to content

Three-column pricing in WordPress

Three plans side by side, the middle one highlighted.

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

pattern.html
<!-- wp:html -->
<ul class="tiers">
        <li class="tier-tarifs-trois-colonnes">
          <h2>Essentiel</h2>
          <p class="tier-tarifs-trois-colonnes__tagline">Pour démarrer seul</p>
          <p class="tier-tarifs-trois-colonnes__price"><strong>19 €</strong> par mois, HT</p>
          <ul>
            <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m5 12.5 4.5 4L19 7"/></svg>1 praticien</li>
            <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m5 12.5 4.5 4L19 7"/></svg>Agenda en ligne</li>
            <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m5 12.5 4.5 4L19 7"/></svg>Rappels par e-mail</li>
          </ul>
          <a href="#essai">Essayer Essentiel</a>
style.css
:root {
  --tier-tarifs-trois-colonnes-bg: #ffffff;
  --tier-tarifs-trois-colonnes-line: #e0e0f5;
  --tier-tarifs-trois-colonnes-text: #1e1b4b;
  --tier-tarifs-trois-colonnes-muted: #4b4b70;
  --tier-tarifs-trois-colonnes-accent: #4338ca;
  --tier-tarifs-trois-colonnes-accent-text: #ffffff;
  --tier-tarifs-trois-colonnes-ring: #4338ca;
  --demo-tarifs-trois-colonnes-bg: #f5f5fd;
  --demo-tarifs-trois-colonnes-text: #1e1b4b;
}
tarifs-trois-colonnes.php
<?php
/**
 * Plugin Name: Forge, Tarifs en trois colonnes
 * Description: Trois formules côte à côte, celle du milieu mise en avant. Ajoute la composition « Tarifs en trois colonnes » à 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-trois-colonnes
 *

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

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
    Component
  • 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
    Component
  • A session pack grid that computes the price per session and the money saved, with an optional reduced rate.

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

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single plan presented in detail, with a reassuring satisfaction guarantee.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component