Skip to content

Service list with prices in WordPress

A craftsperson's services with a short description, an indicative price and a link to details.

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

features-services-tarifs.php
<?php
/**
 * Plugin Name: Forge, Liste de prestations avec prix
 * Description: Les prestations d'un artisan avec une description courte, un prix indicatif et un lien vers le détail. Ajoute la composition « Liste de prestations avec prix » à 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-features-services-tarifs
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "serv", "layout": {"type": "default"}} -->
<section class="wp-block-group serv"><!-- wp:heading {"level": 2} -->
<h2 class="wp-block-heading">Nos réalisations sur mesure</h2>
<!-- /wp:heading -->
<!-- wp:html -->
<ul>
          <li>
            <span class="serv__icon"><svg aria-hidden="true" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 6.5a4 4 0 0 0 5 5L12 19a2.1 2.1 0 0 1-3-3l7.5-7.5"/><path d="M14.5 6.5 17 4l3 3-2.5 2.5"/></svg></span>
            <h3>Pose de cuisine</h3>
            <p>Montage des meubles, plan de travail, crédence et raccordements.</p>
            <p class="serv__price">À partir de 890 €</p>
            <a href="#pose">En savoir plus<span class="serv__hidden"> sur pose de cuisine</span></a>
style.css
:root {
  --serv-card: #ffffff;
  --serv-line: #ead9c6;
  --serv-text: #2b1a0e;
  --serv-muted: #6b4a33;
  --serv-icon-bg: #f5e6d3;
  --serv-icon: #8a4b1f;
  --serv-link: #8a4b1f;
  --serv-ring: #8a4b1f;
  --demo-features-services-tarifs-bg: #fbf6f0;
  --demo-features-services-tarifs-text: #2b1a0e;
}

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

Features components in WordPress
  • Three cards in saturated flat colours (yellow, pink, electric blue) with high-contrast text and a dark variant. Every colour pair is measured at AA: 5.5:1 at worst.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Six features as frosted glass cards over a slowly drifting aurora mesh gradient. Pause button, still background under prefers-reduced-motion, CSS and a light script.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The key message stays pinned while the background changes colour and illustration at each scroll step. CSS sticky, a light script, stacked cards as fallback under prefers-reduced-motion.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A six-cell bento grid: key figures, SVG sparklines, a quote and icons. All the text is in the HTML and the animation is CSS only, with no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A two-offer table: checked rows, a column highlighted from top to bottom and one call-to-action button per offer. Pure HTML and CSS, no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A magazine-style article: title band, standfirst, drop cap, subheadings and a pull quote, set in three columns of equal height. Pure CSS, no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component