该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

锚点区块

描述

抛锚,水手!

这个插件提供了一个专用的Gutenberg 锚点区块因此你可以为你的页面的每一个章节生成额外的链接。

屏幕截图

  • 锚点区块在Gutenberg.
  • 位于块编辑器的布局部分
  • 带有锚点和自定义链接菜单项的前端渲染

区块

该插件提供了1个区块.

  • Anchor Block

安装

  1. 安装插件并且激活
  2. 使用块“锚块”,在古腾堡布局块中可用。

评价

2020年6月5日
When I started working in WP, I as totally surprised anchors were so restricted and frustrated. This solves that problem simply and straightforwardly.
2020年6月1日
...a list of already defined anchors to speed up entering the correct destination link in (for example) a button.
2020年5月24日
Such a simple yet INGENIOUS little plugin that elegantly solves a bugger of an issue with Gutenberg WordPress... inserting "Anchors" (i.e. Page Jumps) into pages. As someone who can edit HTML code quite well, I find it awkward how WordPress makes it to add "anchors" to any place in a document OTHER THAN Headers (Gutenberg has this built in, but JUST for headers). Trying to add the HTML code id="xyz" to anywhere else (text, pictures, etc) forces you to convert the block to pure HTML, thereby losing the block editing structure for all else related to that particular block. So now you have to work with BOTH Block and HTML content on a single page. There is no way to just add the HTML "id code" and keep the existing Gutenberg Block editing structure for all other aspects of the paragraph or picture. Trust me, if I wanted to work in HTML, I would. But there are reasons why I use WordPress and this one caveat of forcing mixed editing styles is just dysfunctional. Enter Gutenberg Anchor BLock! Simply add it to your page, just as you would any other block, just above where you want an anchor point, enter a unique name for the anchor, and voila... you're DONE! A genius of an idea for which the developer, Jean-Baptiste Audras, should get royalties when it becomes a built-in of the next Gutenberg update. See, it truly IS the little things in life that make you the happiest!
2020年4月2日
This is a nice method to integrate anchor links in gutenberg editor. However the top spacing is sadly not working for me. I'm using the Astra theme. I placed the anchor block just before a heading
2019年9月28日
This plugin gives you total freedom with anchor links, using Gutenberg. My advice : follow this WP core developer.
阅读所有6条评价

贡献者及开发者

“锚点区块” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“锚点区块”插件已被翻译至6种本地话语言。 感谢所有译者为本插件所做的贡献。

将“锚点区块”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

0.1

  • 插件初始提交。工作良好 :)