Skip to content

Editorial hero in WordPress

A large serif composition, sober and composed, for liberal professions.

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-editorial-serif.php
<?php
/**
 * Plugin Name: Forge, Section d'accueil éditoriale
 * Description: Une grande composition à empattements, sobre et posée, pour les professions libérales. Ajoute la composition « Section d'accueil éditoriale » à 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-editorial-serif
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "edito", "layout": {"type": "default"}} -->
<section class="wp-block-group edito"><!-- wp:paragraph {"className": "edito__meta"} -->
<p class="edito__meta"><span>Cabinet Vasseur</span><span>Avocats au barreau de Paris depuis 1998</span></p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 1} -->
<h1 class="wp-block-heading">Le droit des affaires, expliqué et défendu</h1>
<!-- /wp:heading -->
<!-- wp:group {"className": "edito__columns", "layout": {"type": "default"}} -->
<div class="wp-block-group edito__columns"><!-- wp:paragraph -->
<p>Création d'entreprise, contrats commerciaux, litiges entre associés : nous accompagnons les dirigeants de PME avec des conseils clairs et des honoraires annoncés à l'avance.</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
style.css
:root {
  --edito-bg: #f7f6f2;
  --edito-text: #1d1b16;
  --edito-muted: #55504a;
  --edito-line: #1d1b16;
  --edito-ring: #1d1b16;
  --demo-hero-editorial-serif-bg: #f7f6f2;
  --demo-hero-editorial-serif-text: #1d1b16;
}

@media (prefers-color-scheme: dark) {
  :root.forge-follows-system:not([data-theme="light"]) {

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
  • Headline, promise and two actions on the left, vector illustration on the right.

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

    • Tailwind
    • React
    • CSS
    • WordPress
    Component