Skip to content

Hero with illustration in WordPress

Headline, promise and two actions on the left, vector illustration on the right.

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

hero-split-illustration.php
<?php
/**
 * Plugin Name: Forge, Section d'accueil avec illustration
 * Description: Titre, promesse et deux actions à gauche, illustration vectorielle à droite. Ajoute la composition « Section d'accueil avec illustration » à 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-split-illustration
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "split-hero", "layout": {"type": "default"}} -->
<section class="wp-block-group split-hero"><!-- wp:group {"className": "split-hero__text", "layout": {"type": "default"}} -->
<div class="wp-block-group split-hero__text"><!-- wp:paragraph {"className": "split-hero__badge"} -->
<p class="split-hero__badge">Artisan certifié RGE</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 1} -->
<h1 class="wp-block-heading">Votre maison rénovée, sans mauvaise surprise</h1>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "split-hero__lead"} -->
<p class="split-hero__lead">Isolation, extension et rénovation complète en Loire-Atlantique. Un seul interlocuteur, un devis détaillé et un planning tenu.</p>
<!-- /wp:paragraph -->
<!-- wp:group {"className": "split-hero__actions", "layout": {"type": "default"}} -->
style.css
:root {
  --hero-bg: #fff7ed;
  --hero-text: #431407;
  --hero-muted: #7c2d12;
  --hero-accent: #c2410c;
  --hero-accent-text: #ffffff;
  --hero-art: #ea580c;
  --hero-badge: #ffedd5;
  --hero-ring: #9a3412;
  --demo-hero-split-illustration-bg: #fff7ed;
  --demo-hero-split-illustration-text: #431407;
}

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

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
    Component
  • A festival or fair header: dates, venue, featured artists, a real countdown to opening and ticket options.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Headline, service area, Google rating and job-site photo, with a direct call button and a short callback form (name, phone, need).

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • 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
    Component
  • A large serif composition, sober and composed, for liberal professions.

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

    • Tailwind
    • React
    • CSS
    • WordPress
    Component