Call-to-action band in WordPress
A full-width band with a heading, a sentence and two action buttons.
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, Bandeau d'appel à l'action
* Description: Un bandeau pleine largeur avec un titre, une phrase et deux boutons d'action. Ajoute la composition « Bandeau d'appel à l'action » à 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-cta-bandeau-deux-boutons
*<!-- wp:group {"tagName": "section", "className": "band", "layout": {"type": "default"}} -->
<section class="wp-block-group band"><!-- wp:group {"className": "band__inner", "layout": {"type": "default"}} -->
<div class="wp-block-group band__inner"><!-- wp:group {"layout": {"type": "default"}} -->
<div class="wp-block-group"><!-- wp:heading {"level": 2} -->
<h2 class="wp-block-heading">Une table pour ce soir ?</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Service de 19 h à 22 h 30, du mardi au samedi. Les groupes de plus de huit personnes sont accueillis sur réservation.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:group {"className": "band__actions", "layout": {"type": "default"}} -->
<div class="wp-block-group band__actions"><!-- wp:html -->:root {
--band-bg: #9f1d1d;
--band-text: #fff5f5;
--band-muted: #fecaca;
--band-btn: #fff5f5;
--band-btn-text: #7f1414;
--band-ring: #fff5f5;
--demo-cta-bandeau-deux-boutons-bg: #fff5f5;
--demo-cta-bandeau-deux-boutons-text: #3b0707;
}
@media (prefers-color-scheme: dark) {Free component: copy it freely, including for commercial projects.
Other calls to action components in WordPress
Calls to action components in WordPress
A promotional card for a course, a workshop or an opening: remaining seats, a fill bar, the registration deadline and a booking button, with no countdown timer.
- Tailwind
- React
- CSS
- WordPress

A Free quote within 24 hours banner with a request button, a clickable phone number and three guarantees (no commitment, fast reply, free visit), with no JavaScript.
- Tailwind
- React
- CSS
- WordPress

A desktop contact card with a clickable tel: number, a live Available badge and response hours, for tradespeople who want to be phoned directly.
- Tailwind
- React
- CSS
- WordPress

Countdown CTA
FreeA call to action for a limited offer: serif heading, two links and a countdown in days, hours and minutes inside a coupon-style frame.
- Tailwind
- React
- CSS
- WordPress

A direct-call block for emergencies, with the number in very large type and response times.
- Tailwind
- React
- CSS
- WordPress

A sign-up box with an email field, a button and a note on how the address is used.
- Tailwind
- React
- CSS
- WordPress