sandywp / plugins / hyperlink-group-block

Hyperlink Group Block

4.3 out of 5 stars. 4.3 14 reviews

Make a group of blocks clickable: wrap a card, teaser or post tile with one link (<a>).

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v2.1.1 7,000+ installs WP 6.6+ PHP 7.2+

your-sandbox.sandywp.com/wp-admin
Hyperlink Group Block running inside a SandyWP sandbox

What you get inside

5 screens
  • Hyperlink Group Block in the editor with the native style settings: typography, background hover color, background image and layout.

  • Set the link URL and open it in a new tab.

  • Rendered HTML of two examples. A: a heading and a paragraph, the whole block is one link with target, rel, title and aria-label. B: a paragraph with an inner…

  • Block settings: link to the current post inside a Query Loop, and advanced settings for HTML anchor, CSS classes, tab name (target), rel, aria-label and title.

  • Transform blocks or a Group Block into a Hyperlink Group Block and back.

About this plugin

The Hyperlink Group Block wraps any blocks, like an image, heading and text, with a single link. The whole area becomes clickable, perfect for cards, teasers and call-to-action boxes.

Inside a Query Loop, the block can link to the current post, so every post tile becomes clickable.

Grouping Existing Blocks

Select the blocks, click the block icon in the toolbar and choose Hyperlink Group Block. A Group Block can be transformed into a Hyperlink Group Block and back.

Features

  • Wrap blocks with a link
  • Use the link from the Query Loop Block
  • Transform blocks or a Group Block into a Hyperlink Group Block and back
  • Set rel, title, aria-label and target (open in a new tab or a named tab)
  • Native block supports: colors, link and link hover color, typography, spacing
  • Hover background color and hover text decoration (block option)
  • Inner links stay clickable (stretched link)

Tip Top Press

We’re Tip Top Press and create Gutenberg blocks for WordPress. Read news and background stories on our blog.

Contribute

While using this plugin if you find any bug or any conflict, please submit an issue at Github (If possible with a pull request).

Questions

WPML support (translate the anchor)

There are two kinds for WPML translation.

Translate with “WordPress Editor”, not with “WPML Translation Editor”:
WPML > Settings > Translation Editor > Classic Translation Editor
or
Your site in admin / gutenberg mode > right sidebar / Page > language > Translations > WordPress Editor

Other option but there is a bug, it doesn’t work for us?
wpml.org/faq / FAQ > How-To > “How can I translate links and HTML attributes in the Advanced Translation Editor?”
Search content: “http” YouTube

Can I use links within the Hyperlink Group Block?

Yes. Inner links stay clickable, the group is then rendered as <div> with a stretched link covering the whole block.

Can I change the text decoration on hover?

Yes. In the block sidebar open Styles > Typography, click the options menu (⋮) and enable “Decoration (Hover)”. Choose Underline.

Can I set the link color and link hover color?

Yes. The block uses the native WordPress block supports. In the block sidebar open Styles > Color > Link to set the link color and the hover color. There you can also set text, background, heading and “Background hover” colors.

How do I open several links in the same tab?

Use the “Tab name” field. In the block sidebar open Advanced and enter a name, e.g. preview. It is used as the link target (target="preview"). The first click opens a new tab with this name, every other link with the same tab name opens in this tab instead of a new one.

_blank opens a new tab on every click, like "Open in new tab". With any other tab name the "Link rel" field is cleared.

4.3

14 reviews

  • 5 ★ 10
  • 4 ★ 2
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 2

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

  • Addon Elementor Container Link

    5.0 · 2K+ installs

    Enhance your Elementor Website Builder with Addon Elementor Container Link by adding custom URL or link support to containers,…

  • Anchor Block

    4.1 · 2K+ installs

    Anchor Block let you generate internal link to any section of your Gutenberg pages.

  • Add Anchor Links

    4.7 · 1K+ installs

    Creates anchor links to heading tags in the content of selected posts, just like Github does within the Readme.md files.

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.