Skip to content

Free quote call to action with guarantees in 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.

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

cta-devis-gratuit-garantie.php
<?php
/**
 * Plugin Name: Forge, Appel à devis gratuit avec garanties
 * Description: Un bandeau « Devis gratuit sous 24 h » avec un bouton de demande, le numéro de téléphone cliquable et trois garanties (sans engagement, réponse rapide, déplacement offert), sans JavaScript. Ajoute la composition « Appel à devis gratuit avec garanties » à 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-devis-gratuit-garantie
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "dvg", "layout": {"type": "default"}} -->
<section class="wp-block-group dvg"><!-- wp:group {"className": "dvg__main", "layout": {"type": "default"}} -->
<div class="wp-block-group dvg__main"><!-- wp:html -->
<p class="dvg__eyebrow"><svg class="dvg__eyebrow-icon" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>Devis gratuit sous 24 h</p>
<!-- /wp:html -->
<!-- wp:heading {"level": 2, "className": "dvg__title", "anchor": "dvg-titre"} -->
<h2 class="wp-block-heading dvg__title" id="dvg-titre">Parlez-nous de votre projet, recevez votre devis détaillé dès demain</h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "dvg__intro"} -->
<p class="dvg__intro">Décrivez vos travaux en quelques lignes, ajoutez des photos si vous le souhaitez : un conducteur de travaux vous envoie un chiffrage poste par poste, sans jargon ni frais cachés.</p>
<!-- /wp:paragraph -->
<!-- wp:group {"className": "dvg__actions", "layout": {"type": "default"}} -->
style.css
:root {
  --dvg-radius: 28px;
  --dvg-text: #0f172a;
  --dvg-body: #334155;
  --dvg-surface: #eff6ff;
  --dvg-line: #bfdbfe;
  --dvg-card: #ffffff;
  --dvg-pill-bg: #dbeafe;
  --dvg-pill-text: #1e3a8a;
  --dvg-accent: #1d4ed8;
  --dvg-cta-bg: #1d4ed8;
  --dvg-cta-hover: #1e40af;

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

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
    Component
  • 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
    Component
  • A 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
    Component
  • A direct-call block for emergencies, with the number in very large type and response times.

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

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

    • Tailwind
    • React
    • CSS
    • WordPress
    Component