measuredcode

Ukraine · Croatia

WordPress plugin, free

Wholelink

Makes a whole Group, Column or Cover block clickable, so visitors can click anywhere on it, not only on a heading or a button. Query Loop post cards each link to their own post.

Free

in review for wordpress.org

No JavaScript

on the front end, a plain HTML link

Safe to remove

blocks stay valid without it

← All the work

The problem

A link wraps text, not a whole card.

The block editor has no setting for this. A link can wrap text or a button, but not a whole Group, Column or Cover, so a card opens its page only from its heading or its button. Wholelink adds that setting to the core blocks you already use: no extra wrapper block to insert and nothing to rebuild.

What the free plugin does

  • Adds a link button to the toolbar of the Group block, with its Row, Stack and Grid variations, the Column block and the Cover block. Search for a page or post or paste any URL, in the same link box as on the Button block.
  • Inside a Query Loop, “Link to this post” turns each post card into one link to its own post.
  • Opens the link in a new tab or marks it nofollow or sponsored, as on the Button block, and takes a label for screen readers.
  • Keeps links, buttons and form fields inside the block working on their own, so a category link inside a post card still goes to the category.
  • Lets keyboard users reach the block with Tab and shows a focus outline around the whole block. Screen readers announce your label, the post title in a Query Loop, or the block’s first heading or text.
  • Renders a plain HTML link on the server. It works with JavaScript turned off, middle-click or Ctrl/Cmd-click opens it in a new tab, and search engines see a normal link.
  • Adds one small stylesheet, only on pages that show a linked block. No JavaScript on the front end, no settings stored and no external service.
  • Keeps the link in the block itself, so deactivating or deleting the plugin leaves every block valid. The blocks simply stop being links.

Text inside a linked block cannot be selected by dragging with the mouse: the link covers the whole block, so dragging moves the link instead.

Works with block themes and classic themes. Needs WordPress 6.5 or later and PHP 7.4 or later.

Working on a store?

Tell us about it: a design, a problem or just an idea. We’ll talk it through.

Discuss a project