FAQ with contact card in WordPress
Frequently asked questions followed by a card inviting visitors to call or write.
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, FAQ avec carte de contact
* Description: Les questions fréquentes suivies d'une carte invitant à appeler ou écrire. Ajoute la composition « FAQ avec carte de contact » à 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-faq-carte-contact
*<!-- wp:group {"tagName": "section", "className": "cfaq", "layout": {"type": "default"}} -->
<section class="wp-block-group cfaq"><!-- wp:heading {"level": 2} -->
<h2 class="wp-block-heading">Questions fréquentes</h2>
<!-- /wp:heading -->
<!-- wp:details -->
<details class="wp-block-details"><summary>Intervenez-vous le week-end ?</summary><!-- wp:paragraph -->
<p>Oui, pour les urgences (fuite, panne de chauffage), nous intervenons le samedi et le dimanche avec une majoration de 30 % annoncée avant le déplacement.</p>
<!-- /wp:paragraph --></details>
<!-- /wp:details -->
<!-- wp:details -->
<details class="wp-block-details"><summary>Le devis est-il gratuit ?</summary><!-- wp:paragraph -->
<p>Oui. Nous nous déplaçons gratuitement dans un rayon de 25 km pour établir un devis détaillé, valable trois mois.</p>:root {
--cfaq-text: #0c2340;
--cfaq-muted: #3d5574;
--cfaq-line: #cfdcec;
--cfaq-card: #0c4a6e;
--cfaq-card-text: #f0f9ff;
--cfaq-ring: #0369a1;
--demo-faq-carte-contact-bg: #f3f8fc;
--demo-faq-carte-contact-text: #0c2340;
}
@media (prefers-color-scheme: dark) {Free component: copy it freely, including for commercial projects.
Other FAQ and accordions components in WordPress
FAQ and accordions components in WordPress
A native accordion FAQ where each answer asks “Was this answer helpful?”, with a thank-you message and a remembered vote.
- Tailwind
- React
- CSS
- WordPress

Two-column FAQ
FreeAn introduction and a contact link on the left, expandable questions on the right.
- Tailwind
- React
- CSS
- WordPress

A tight accordion within a single frame, for practical information pages.
- Tailwind
- React
- CSS
- WordPress

FAQ by category
FreeQuestions grouped under subheadings, for long FAQs.
- Tailwind
- React
- CSS
- WordPress

Open card FAQ
FreeAll answers visible at once, presented as a card grid.
- Tailwind
- React
- CSS
- WordPress

Accordion FAQ
FreeQuestions that expand one by one, with FAQPage structured data for Google.
- Tailwind
- React
- CSS
- WordPress