Custom Gutenberg Blocks

Card as Link Wrapper

Wraps any block content in a single clickable card, with new-tab control and external-link awareness.

Dynamic BlockPHPAccessibility

What it does

Turns a group of blocks — heading, image, text, whatever an editor arranges — into one clickable card that links wherever they choose, with an option to open in a new tab and a settable background color.

Why it exists

“Make the whole card clickable” is one of the most common layout requests and one of the easiest to implement inaccessibly. Providing it as a governed block gives editors the pattern they want without hand-written markup or nested, conflicting links.

Engineering considerations

The block renders server-side, wrapping its inner content in a single anchor and emitting proper block wrapper attributes so theme styling and the editor’s background-color support apply cleanly. New-tab links receive rel="noopener noreferrer", and it coordinates with the external-link plugin so an outbound card surfaces its icon on the heading rather than on the full-card link.

Screenshots & media
Card template in the editor
Card template in the editor
URL & open-in-new-tab settings
URL & open-in-new-tab settings
Clickable link cards on the frontend
Clickable link cards on the frontend
Whole-card link wrapper (render.php)
Whole-card link wrapper (render.php)
Contact

Start a Conversation

Matt works directly with teams and agencies on enterprise WordPress development, from custom Gutenberg experiences to large-scale builds and ongoing engineering support. Available for remote contract engagements.

Connect with Matt