Skip to content

Thank-you page after sending in WordPress

The page shown after a quote request or contact message: clear confirmation, announced response time, printable summary, next steps and useful links.

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

page-merci-confirmation.php
<?php
/**
 * Plugin Name: Forge, Page de remerciement après envoi
 * Description: La page qui suit un devis ou un message de contact : confirmation claire, délai de réponse annoncé, récapitulatif imprimable, prochaines étapes et liens utiles. Ajoute la composition « Page de remerciement après envoi » à 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-page-merci-confirmation
 *
pattern.html
<!-- wp:html -->
<article class="pmrc" aria-labelledby="pmrc-titre" data-pmrc>
        <header class="pmrc__head">
          <span class="pmrc__disc">
            <svg class="pmrc__check" 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"><path d="m7 12.5 3.2 3.2L17 9" pathlength="1"/></svg>
          </span>
          <p class="pmrc__eyebrow">Demande envoyée</p>
          <h1 class="pmrc__title" id="pmrc-titre">Merci Claire, votre demande de devis est bien arrivée</h1>
          <p class="pmrc__intro">Nous l'avons reçue le <time datetime="2026-10-15T14:32">jeudi 15 octobre 2026 à 14 h 32</time>. Un e-mail de confirmation vient de partir vers <strong>claire.martin@exemple.fr</strong>.</p>
        </header>
        <div class="pmrc__delay">
          <svg class="pmrc__delay-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>
script.js
(() => {
  if (!document.querySelector(".pmrc")) return;
  document.querySelectorAll("[data-pmrc]").forEach((root) => {
    const status = root.querySelector("[data-pmrc-status]");
    const print = root.querySelector("[data-pmrc-print]");
    print.hidden = false;
    print.addEventListener("click", () => window.print());

    const copy = root.querySelector("[data-pmrc-copy]");
    if (!navigator.clipboard) return;
    copy.hidden = false;
    copy.addEventListener("click", async () => {
style.css
:root {
  --pmrc-text: #14231b;
  --pmrc-muted: #4a5a51;
  --pmrc-body: #2f4237;
  --pmrc-card: #ffffff;
  --pmrc-line: #d6e2da;
  --pmrc-step-line: #c4d3c9;
  --pmrc-accent: #15803d;
  --pmrc-accent-text: #ffffff;
  --pmrc-soft: #dcfce7;
  --pmrc-soft-text: #14532d;
  --pmrc-note: #f0fdf4;

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

Error pages components in WordPress
  • A ready-to-publish changelog page: dated, versioned notes grouped by month, each with a type badge (new, improvement, fix), module tags and filters that announce how many notes are shown.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Ready-to-fill terms of sale for a showcase site selling to consumers: seller, ordering, prices, delivery, withdrawal with a copyable form, statutory warranties and mediation, with 26 highlighted fields to complete and a side table of contents that follows the reader.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A ready-to-fill GDPR privacy policy for a showcase site: controller, data collected, purposes, retention periods, recipients, rights and cookies, with 24 highlighted fields to complete and a side table of contents that follows the reader.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A ready-to-fill French legal notice page: publisher, host, SIRET, contact, intellectual property and personal data, with 16 highlighted fields to complete and a side table of contents that follows the reader.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A page shown during maintenance, with the expected return time and ways to stay informed.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A clean not-found page with a large error code, a search field and links to the main sections.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component