Legal notice page template in WordPress
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.
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, Page mentions légales modèle
* Description: Une page de mentions légales prête à remplir : éditeur, hébergeur, SIRET, contact, propriété intellectuelle et données personnelles, avec 16 champs à compléter surlignés et un sommaire latéral qui suit la lecture. Ajoute la composition « Page mentions légales modèle » à 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-mentions-legales-modele
*<!-- wp:html -->
<article class="pmlm" data-pmlm aria-labelledby="pmlm-titre">
<header class="pmlm__head">
<p class="pmlm__eyebrow">Informations légales</p>
<h1 class="pmlm__title" id="pmlm-titre">Mentions légales</h1>
<p class="pmlm__updated">Dernière mise à jour : <mark class="pmlm__field" data-pmlm-field tabindex="-1"><span class="pmlm__sr">À compléter : </span>date de mise à jour</mark></p>
<div class="pmlm__notice" data-pmlm-notice>
<svg class="pmlm__notice-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 11v5M12 8v.01"/></svg>
<div class="pmlm__notice-body">
<p class="pmlm__notice-text"><strong>Modèle à compléter.</strong> Remplacez chaque champ signalé <span class="pmlm__field">comme ceci</span> par vos informations, puis retirez cet encadré avant la mise en ligne.</p>
<p class="pmlm__status" data-pmlm-status aria-live="polite" hidden></p>
<button class="pmlm__next" type="button" data-pmlm-next hidden>(() => {
if (!document.querySelector(".pmlm")) return;
document.querySelectorAll("[data-pmlm]").forEach((root) => {
const fields = [...root.querySelectorAll("[data-pmlm-field]")];
const notice = root.querySelector("[data-pmlm-notice]");
const status = root.querySelector("[data-pmlm-status]");
const next = root.querySelector("[data-pmlm-next]");
const links = [...root.querySelectorAll("[data-pmlm-toc] a")];
const sections = links.map((link) => root.querySelector(link.hash));
const reduce = matchMedia("(prefers-reduced-motion: reduce)");
const label = (field) => field.lastChild.textContent.trim();
let index = -1;:root {
--pmlm-radius: 20px;
--pmlm-text: #0f172a;
--pmlm-body: #334155;
--pmlm-muted: #475569;
--pmlm-surface: #ffffff;
--pmlm-line: #e2e8f0;
--pmlm-accent: #4338ca;
--pmlm-accent-soft: #eef2ff;
--pmlm-field-bg: #fef3c7;
--pmlm-field-text: #78350f;
--pmlm-field-line: #b45309;Free component: copy it freely, including for commercial projects.
Other error pages components in WordPress
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

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

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

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

Maintenance page
FreeA page shown during maintenance, with the expected return time and ways to stay informed.
- Tailwind
- React
- CSS
- WordPress

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