Skip to content

Minimal centered footer in WordPress

Logo, one line of links and the copyright, centered and airy.

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

footer-minimal-centre.php
<?php
/**
 * Plugin Name: Forge, Pied de page minimal centré
 * Description: Logo, une ligne de liens et le copyright, centrés et aérés. Ajoute la composition « Pied de page minimal centré » à 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-footer-minimal-centre
 *
pattern.html
<!-- wp:group {"tagName": "footer", "className": "mini", "layout": {"type": "default"}} -->
<footer class="wp-block-group mini"><!-- wp:html -->
<a class="mini__brand" href="#accueil">Inès Moreau</a>
<!-- /wp:html -->
<!-- wp:html -->
<nav aria-label="Liens du pied de page">
          <ul>
            <li><a href="#projets">Projets</a></li>
            <li><a href="#a-propos">À propos</a></li>
            <li><a href="#contact">Contact</a></li>
            <li><a href="#mentions">Mentions légales</a></li>
          </ul>
style.css
:root {
  --mini-bg: #fafafa;
  --mini-line: #e5e5e5;
  --mini-text: #525252;
  --mini-strong: #171717;
  --mini-ring: #171717;
  --demo-footer-minimal-centre-bg: #fafafa;
  --demo-footer-minimal-centre-text: #171717;
}

@media (prefers-color-scheme: dark) {
  :root.forge-follows-system:not([data-theme="light"]) {

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

Footers components in WordPress
  • A complete footer (introduction, contact details, sitemap, legal links) where the Made with Forge link is a standalone paragraph: keep it or delete it, the layout stays the same.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A footer for building tradespeople: contact details and a call button, service area with the towns covered, opening hours, then the details a French professional must display (SIRET, VAT number, registration, ten-year liability insurance with insurer and coverage, consumer mediator) and the legal links.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A dark footer with brand, social links and a four-column sitemap that turns into collapsible sections on mobile.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Cards linking to each social network with the reason to follow, for clubs and associations.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A highlighted invitation to subscribe, followed by the essential links.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single strip with copyright, legal pages, cookie settings and back to top.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component