Raised button in WordPress
A chunky button that sinks under the finger, for primary actions.
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, Bouton en relief
* Description: Un bouton épais qui s'enfonce sous le doigt, pour les actions principales. Ajoute la composition « Bouton en relief » à 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-bouton-relief
*<!-- wp:html -->
<button type="button" class="raised-button raised-button--small">Ajouter</button>
<!-- /wp:html -->
<!-- wp:html -->
<button type="button" class="raised-button">Réserver une table</button>
<!-- /wp:html -->
<!-- wp:html -->
<button type="button" class="raised-button raised-button--secondary">Voir la carte</button>
<!-- /wp:html -->
:root {
--raised-bg: #2b3fd9;
--raised-text: #ffffff;
--raised-edge: #17227a;
--raised-secondary-bg: #ffffff;
--raised-secondary-text: #17227a;
--raised-secondary-edge: #17227a;
--raised-ring: #ffb020;
--raised-radius: 12px;
--raised-depth: 5px;
--demo-bouton-relief-bg: #f3f4f8;
}Free component: copy it freely, including for commercial projects.
Other buttons components in WordPress
Buttons components in WordPress
A row of buttons to share the page on Facebook, LinkedIn, WhatsApp or by email, with a copy-link button and no third-party script.
- Tailwind
- React
- CSS
- WordPress

Toggle heart buttons that count favourites, remember them between visits and announce them to screen readers.
- Tailwind
- React
- CSS
- WordPress

A button that adds an event to Google Calendar, Outlook or any calendar through an .ics file, with no third-party service.
- Tailwind
- React
- CSS
- WordPress

A button that copies an IBAN, a reference, an address or a promo code and confirms "Copied", on screen and to screen readers.
- Tailwind
- React
- CSS
- WordPress

A WhatsApp button pinned to the bottom of the screen that opens a welcome bubble with common topics and a pre-filled message, with no third-party widget.
- Tailwind
- React
- CSS
- WordPress

A bar pinned to the bottom of mobile screens with Call and Directions buttons and a live open-now status, built for trades and local shops.
- Tailwind
- React
- CSS
- WordPress