Event hero with ticketing in WordPress
A festival or fair header: dates, venue, featured artists, a real countdown to opening and ticket options.
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, Hero d’événement avec billetterie
* Description: Un en-tête de festival ou de salon : dates, lieu, artistes à l’affiche, vrai compte à rebours jusqu’à l’ouverture et formules de billets. Ajoute la composition « Hero d’événement avec billetterie » à 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-evenement-billetterie
*<!-- wp:html -->
<section class="heb" data-heb data-heb-start="2027-06-11T18:00:00+02:00" data-heb-end="2027-06-13T23:59:00+02:00" aria-labelledby="heb-titre">
<div class="heb-main">
<p class="heb-dates"><time datetime="2027-06-11">11</time>, 12 et <time datetime="2027-06-13">13 juin 2027</time> · Plaine de la Garenne, Clisson</p>
<h2 class="heb-title" id="heb-titre">Festival Les Voix du Vignoble</h2>
<p class="heb-text">Trois jours de concerts au milieu des vignes du Muscadet, une scène pour les familles et les vignerons du coin au bar.</p>
<p class="heb-countdown" data-heb-countdown hidden><span class="heb-sr" data-heb-sr></span><span class="heb-units" aria-hidden="true"><span class="heb-unit"><strong class="heb-num" data-heb-days>–</strong>jours</span><span class="heb-unit"><strong class="heb-num" data-heb-hours>–</strong>heures</span><span class="heb-unit"><strong class="heb-num" data-heb-minutes>–</strong>minutes</span></span></p>
<h3 class="heb-h3">À l’affiche</h3>
<ul class="heb-lineup">
<li class="heb-artist">Les Frangines</li>
<li class="heb-artist">Tiken Jah Fakoly</li>
<li class="heb-artist">Pomme</li>(() => {
if (!document.querySelector(".heb")) return;
document.querySelectorAll("[data-heb]").forEach((root) => {
const on = (el, type, fn) => el.addEventListener(type, fn);
const offs = [];
const start = new Date(root.getAttribute("data-heb-start")).getTime();
const end = new Date(root.getAttribute("data-heb-end")).getTime();
const box = root.querySelector("[data-heb-countdown]");
const set = (name, value) => {
root.querySelector(`[data-heb-${name}]`).textContent = String(value);
};
:root {
--heb-bg: linear-gradient(135deg, #3b0764, #9d174d 55%, #c2410c);
--heb-text: #fff7f2;
--heb-muted: #fbdcd0;
--heb-chip: rgb(255 255 255 / 0.14);
--heb-side: #fffaf6;
--heb-side-text: #2a1420;
--heb-side-muted: #5f4452;
--heb-line: #f1dbe2;
--heb-accent: #9d174d;
--heb-accent-text: #ffffff;
--demo-hero-evenement-billetterie-bg: #f4ecf0;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

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

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