Tradesperson hero with quick quote request in WordPress
Headline, service area, Google rating and job-site photo, with a direct call button and a short callback form (name, phone, need).
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, Héros d'artisan avec demande de devis rapide
* Description: Titre, zone d'intervention, note Google et photo de chantier, avec un bouton d'appel direct et un mini-formulaire de rappel (nom, téléphone, besoin). Ajoute la composition « Héros d'artisan avec demande de devis rapide » à 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-hero-artisan-devis-rapide
*<!-- wp:html -->
<section class="had" aria-labelledby="had-titre" data-had>
<div class="had__inner">
<div class="had__intro">
<p class="had__eyebrow"><svg class="had__eyebrow-icon" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21Z"/><circle cx="12" cy="9.5" r="2.5"/></svg>Plombier-chauffagiste à Rennes et à 30 km autour</p>
<h1 class="had__title" id="had-titre">Fuite, chaudière, salle de bain : un artisan chez vous sous 48 h</h1>
<p class="had__lead">Le Goff Plomberie dépanne et rénove les logements rennais depuis 2009. Une seule équipe, du devis à la fin du chantier.</p>
<p class="had__rating">
<svg class="had__stars" viewBox="0 0 120 24" width="100" height="20" fill="currentColor" aria-hidden="true" focusable="false"><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9Z" transform="translate(0 0)"/><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9Z" transform="translate(24 0)"/><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9Z" transform="translate(48 0)"/><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9Z" transform="translate(72 0)"/><path d="M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9Z" transform="translate(96 0)"/></svg>
<span><strong class="had__score">4,9</strong> sur 5 · 186 avis Google</span>
</p>
<div class="had__actions">(() => {
if (!document.querySelector(".had")) return;
document.querySelectorAll("[data-had]").forEach((root) => {
const form = root.querySelector("[data-had-form]");
const submit = root.querySelector("[data-had-submit]");
const failure = root.querySelector("[data-had-failure]");
const done = root.querySelector("[data-had-done]");
const checks = {
nom: (value) => (value.trim() ? "" : "Indiquez votre nom pour que nous sachions qui rappeler."),
telephone: (value) => {
if (!value.trim()) return "Indiquez votre numéro de téléphone.";
return /^(\+33|0033|0)[1-9]\d{8}$/.test(value.replace(/[\s.\-]/g, "")) ? "" : "Ce numéro semble incomplet : saisissez 10 chiffres, par exemple 06 12 34 56 78.";:root {
--had-bg: #f6f3ee;
--had-text: #1d232b;
--had-muted: #4f5863;
--had-line: #d9d2c6;
--had-card: #ffffff;
--had-field: #ffffff;
--had-field-line: #7b8590;
--had-accent: #1e3a5f;
--had-accent-hover: #152c49;
--had-accent-text: #ffffff;
--had-ring: rgb(30 58 95 / 0.2);Free component: copy it freely, including for commercial projects.
Other hero sections components in WordPress
Hero sections components in WordPress
A dark hero where very large words, outlined or at low opacity, pass behind a two-column text. The animation is CSS only, with no script and no image.
- Tailwind
- React
- CSS
- WordPress

A festival or fair header: dates, venue, featured artists, a real countdown to opening and ticket options.
- Tailwind
- React
- CSS
- WordPress

A bright, warm hero: highlighted promise, two buttons, an avatar stack with a rating out of 5, and on the right a customer quote surrounded by result chips.
- Tailwind
- React
- CSS
- WordPress

Headline, promise and two actions on the left, vector illustration on the right.
- Tailwind
- React
- CSS
- WordPress

Editorial hero
FreeA large serif composition, sober and composed, for liberal professions.
- Tailwind
- React
- CSS
- WordPress

A powerful headline followed by a row of three reassuring figures.
- Tailwind
- React
- CSS
- WordPress