Emergency call-out in WordPress
A direct-call block for emergencies, with the number in very large type and response times.
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, Appel d'urgence dépannage
* Description: Un bloc d'appel direct pour les urgences, avec le numéro en très grand et les délais d'intervention. Ajoute la composition « Appel d'urgence dépannage » à 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-urgence-depannage
*<!-- wp:group {"tagName": "section", "className": "sos", "layout": {"type": "default"}} -->
<section class="wp-block-group sos"><!-- wp:paragraph {"className": "sos__badge"} -->
<p class="sos__badge"><span aria-hidden="true"></span>Disponible maintenant</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2} -->
<h2 class="wp-block-heading">Fuite d'eau, panne de chauffe-eau ?</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Un plombier chez vous en moins d'une heure à Lyon et dans la métropole, 7 jours sur 7, de 7 h à 23 h.</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
<a href="tel:+33478000000" aria-label="Appeler le 04 78 00 00 00"><svg aria-hidden="true" viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2"/></svg>04 78 00 00 00</a>:root {
--sos-bg: #fff7ed;
--sos-line: #fdba74;
--sos-text: #2c1404;
--sos-muted: #6b3a14;
--sos-btn: #c2410c;
--sos-btn-text: #ffffff;
--sos-live: #15803d;
--sos-ring: #7c2d12;
--demo-cta-urgence-depannage-bg: #ffedd5;
--demo-cta-urgence-depannage-text: #2c1404;
}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 sign-up box with an email field, a button and a note on how the address is used.
- Tailwind
- React
- CSS
- WordPress

A full-width band with a heading, a sentence and two action buttons.
- Tailwind
- React
- CSS
- WordPress