Anchor Block

外掛說明

Drop the anchor, sailor!

This plugin provides a dedicated Gutenberg Anchor Block so you could generate internal links to each sections of your pages.

螢幕擷圖

  • Anchor block in Gutenberg
  • Located in Layout section of the block editor
  • Front-end rendering with an anchor and a custom link menu item

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Anchor Block

安裝方式

  1. Install the plugin and activate.
  2. Use the block “Anchor block”, available in Gutenberg LAYOUT blocks.

使用者評論

2022 年 3 月 12 日
Just a warning: This plugin causes tabs created by another plugin to be treated as anchors, causing the page to jump whenever a tab is clicked. Unfortunately, this pushes the tabs just off the top of the screen, and with vertical tabs hides the top of the text contained in the tab. TRhis makes the tabs pretty much unusable, so you have to choose which plugin is most important and dump the other.
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
閱讀全部 8 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Anchor Block〉的開發相關工作。

參與者

〈Anchor Block〉外掛目前已有 6 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Anchor Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1

  • Plugin initial commit. Works fine 🙂