Hyperlink Group Block

描述

Combine blocks into a group wrapped with an hyperlink (<a>).
After inserting a Hyperlink Group Block, a Block inserter icon will be displayed to allow you to add new Blocks inside that Hyperlink Group Block.

Tip Top Press

We’re Tip Top Press and create Gutenberg Blocks for WordPress. If you want to know about what we’re working on and you are interested in backgrounds then you can read all newes storys on our blog.

Grouping Existing Blocks

It’s also possible to group existing Blocks.
Select the Blocks which should be grouped with a Hyperlink. The Block Toolbar will appear. Click on the Block icon and select the Hyperlink Block to transform the selected Blocks to an Hyperlink Block with some InnerBlocks.

Advanced

In the Advanced Tab link rel attributes can be set.

Features

  • Wrap Blocks with a hyperlink
  • Transform Blocks into a group wrapped with an HTML anchor tag (<a>)
  • Set the link href attribute
  • Set rel attributes
  • Option open in a new window
  • Delete inner anchor elements

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).

屏幕截图

  • Hyperlink Group Block to group Blocks with an hyperlink.
  • Wrap Blocks with a link.
  • Rendered HTML.
  • Advanced Settings for rel attributes.
  • Transform Blocks into a group wrapped with an anchor tag

区块

该插件提供了1个区块.

  • Hyperlink Group

安装

This section describes how to install the plugin and get it working.

e.g.

  1. Upload the plugin files to the /wp-content/plugins/hyperlink-group-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

常见问题

Can I use links within the Hyperlink Group Block?

No, that is illegal and causes errors in the renderd HTML.

评价

2022年3月5日
Just what we were looking for, to allow adding links to blocks. Already using it on two sites now. Great job! There was an issue updating, but I am sure that will be fixed soon 🙂
阅读所有3条评价

贡献者及开发者

“Hyperlink Group Block” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Hyperlink Group Block”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.8 – August 20th 2022

  • Render CSS classes

1.0.7 – August 20th 2022

  • No saving when adding CSS classes

1.0.6 – March 07th 2022

  • Markup migration code

1.0.5 – March 06th 2022

  • Backward compatible experimental flag usage

1.0.4 – February 13th 2022

  • Delete inner anchor elements

1.0.3 – February 04th 2022

  • Bugfix Disable focus if link picker is open
  • Bugfix Set color

1.0.2 – February 04th 2022

  • Bugfix __experimental code deleted in Gutenberg 12.5

1.0.1 – July 07th 2021

  • Transforms

0.9.1 – July 06th 2021

  • Release