Team portrait grid in WordPress
Four team members with portrait, name, role and a link to their professional profile.
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, Grille de portraits d'équipe
* Description: Quatre membres de l'équipe avec portrait, nom, fonction et lien vers leur profil professionnel. Ajoute la composition « Grille de portraits d'équipe » à 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-equipe-grille-portraits
*<!-- wp:group {"tagName": "section", "className": "tgrid", "layout": {"type": "default"}} -->
<section class="wp-block-group tgrid"><!-- wp:heading {"level": 2} -->
<h2 class="wp-block-heading">L'équipe</h2>
<!-- /wp:heading -->
<!-- wp:html -->
<ul>
<li>
<span class="tgrid__photo" style="--tone: #1d4ed8" aria-hidden="true">CF</span>
<h3>Claire Fontaine</h3>
<p>Directrice générale</p>
<a href="#profil-cf"><svg aria-hidden="true" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><rect x="3.5" y="3.5" width="17" height="17" rx="3"/><path d="M8 10.5V16M8 7.8v.2M11.5 16v-5.5M11.5 13c0-1.6 1-2.6 2.4-2.6 1.4 0 2.1 1 2.1 2.6V16"/></svg><span class="tgrid__hidden">Profil LinkedIn de Claire Fontaine</span></a>
</li>:root {
--tg-text: #0b1b3a;
--tg-muted: #46577a;
--tg-link: #1d4ed8;
--tg-ring: #1d4ed8;
--demo-equipe-grille-portraits-bg: #f8faff;
--demo-equipe-grille-portraits-text: #0b1b3a;
}
@media (prefers-color-scheme: dark) {
:root.forge-follows-system:not([data-theme="light"]) {
--tg-text: #e6edff;Free component: copy it freely, including for commercial projects.
Other teams components in WordPress
Teams components in WordPress
A team presentation filtered by trade in one click, with the number of people announced to screen readers.
- Tailwind
- React
- CSS
- WordPress