[WordPress] 外掛分享: Custom Anchor Block

WordPress 外掛 Custom Anchor Block 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Custom Anchor Block」是 2025-01-01 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2025-01-02,距離現在已有 419 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.2 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

anderjg |

外掛標籤

links | anchor | blocks | gutenberg | navigation |

內容簡介

總結: Custom Anchor Block 通過添加多功能的錨點連結區塊來增強您的WordPress編輯器。您可以創建作為文本或按鈕樣式的平滑滾動錨點連結,並完全自定義顏色和樣式。

問題與答案:

問題:Custom Anchor Block 的關鍵功能有哪些?
答案:
- 可以創建文本或按鈕樣式的錨點連結
- 可以完全自定義按鈕顏色(背景、文字和邊框)
- 可以選擇不同的按鈕樣式(主要、次要、輪廓)
- 可以選擇按鈕尺寸(小、普通、大)
- 支持多語言(提供英文和西班牙文)
- 具有與區塊編輯器集成的易於使用介面
- 不需要編碼知識

問題:Custom Anchor Block 最適用於哪些情況?
答案:
- 長篇內容導覽
- 常見問題(FAQ)部分
- 目錄
- 登陸頁面
- 產品文檔
- 課程材料

問題:Custom Anchor Block 的使用方法是什麼?
答案:
- 在您想要用戶滾動至的標題或段落中添加
- 在區塊的進階設置中設置HTML錨點ID(例如,“section1”)
- 將Custom Anchor Block添加到您想要出現連結的地方
- 輸入相同的錨點ID
- 選擇文本或按鈕樣式
- 根據需要自定義顏色和外觀

原文外掛簡介

Custom Anchor Block enhances your WordPress editor by adding a versatile anchor link block. Create smooth-scrolling anchor links that can be styled as either text or buttons with fully customizable colors and styles.
Key Features:
* Create anchor links as text or buttons
* Fully customize button colors (background, text, and border)
* Choose from different button styles (Primary, Secondary, Outline)
* Select button sizes (Small, Normal, Large)
* Multi-language support (English and Spanish available)
* Easy to use interface integrated with the block editor
* No coding knowledge required
Perfect for:
* Long-form content navigation
* FAQ sections
* Table of contents
* Landing pages
* Product documentation
* Course materials
Usage

Add a heading or paragraph where you want users to scroll to
Set an HTML anchor ID in the block’s Advanced settings (e.g., “section1”)
Add the Custom Anchor Block where you want the link to appear
Enter the same anchor ID
Choose between text or button style
Customize colors and appearance as needed

Development
This plugin is developed using modern JavaScript and build tools. The source code is available in the /src directory.
Build Tools

Node.js and npm are required for development
The plugin uses @wordpress/scripts for building

Development Setup

Clone the repository
Install dependencies:
npm install
For development with auto-rebuild:
npm run start
For production build:
npm run build

Source Files

/src/index.js – Main JavaScript source code for the block editor containing React components and block registration
/src/style.css – Original CSS styles for both editor and frontend display

Build Output

/build/index.js – Compiled and minified JavaScript
/build/index.asset.php – WordPress dependencies and version information
/build/style-index.css – Compiled and optimized CSS

Development Dependencies
The plugin uses the following development tools:
* @wordpress/scripts: Provides build tools and configurations for WordPress block development
* Package configuration in package.json:
json
{
"scripts": {
"build": "wp-scripts build",
"start": "wp-scripts start",
"format": "wp-scripts format",
"lint:js": "wp-scripts lint-js"
},
"devDependencies": {
"@wordpress/scripts": "^26.0.0"
}
}

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Custom Anchor Block」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.3 | trunk |

延伸相關外掛(你可能也想知道)

  • Classic Editor 》Classic Editor 是由 WordPress 團隊維護的官方外掛程式,可還原之前(也就是「經典」)的 WordPress 編輯器和「編輯文章」畫面,使使用者可以使用延伸這個畫...。
  • Advanced Editor Tools 》高級編輯工具(以前稱為 TinyMCE Advanced)引入了一個「經典段落」區塊,供區塊編輯器(Gutenberg)使用。, 如果您還沒有準備好切換到區塊編輯器,或者有插...。
  • Classic Widgets 》Classic Widgets 是由 WordPress 團隊維護的官方外掛,能夠恢復先前(即「經典」)的 WordPress widgets 設定畫面。該外掛將於 2024 年或必要時保持支援和維...。
  • Starter Templates – AI-Powered Templates for Elementor & Gutenberg 》免費模板,支援 Elementor、Beaver Builder 和 Block Editor, 使用 Starter Templates 外掛,只需數分鐘即可建立專業且完美的網站。此外掛為使用者提供超過 2...。
  • Spectra Gutenberg Blocks – Website Builder for the Block Editor 》a.com/tutorials/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme" rel="nofollow ugc">Spectra tutorials, you can easily learn how to ...。
  • Kadence Blocks — Page Builder Toolkit for Gutenberg Editor 》Kadence Blocks 是一個 WordPress 外掛,它附加自訂區塊和選項,擴展了 Gutenberg 編輯功能,使您能夠輕鬆創建美麗的網站,而不需要任何程式編寫。Kadence Bl...。
  • Disable Gutenberg 》此外掛可禁用新的 Gutenberg 編輯器 (也稱為區塊編輯器),並以經典編輯器取代它。你可以完全禁用 Gutenberg,或從文章、頁面、角色、文章類型和主題模板中有...。
  • Extendify 》Extendify 是一個網站設計和製作工具平台,提供豐富的圖案和全頁面佈局,可用於 Gutenberg 區塊編輯器,幫助人們建立美麗的 WordPress 網站。, 使用 Extendif...。
  • Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE 》Otter 是一款 Gutenberg Blocks 頁面建構外掛,可為 WordPress Block Editor(又稱 Gutenberg)添加額外功能,讓您享受更好的頁面建構體驗,而無需使用傳統的...。
  • Page Builder Gutenberg Blocks – CoBlocks 》, 注意:對於已受 CoBlocks 3.0.0 版本影響的使用者,請查看我們在 WordPress.org 支援論壇文章,如果您需要支援,請建立新的主題帖。, , CoBlocks 是新版 Gu...。
  • AI Powered Starter Templates by Kadence WP 》用三個滑鼠點擊建立一個美觀的「效能優化」網站, 在幾分鐘內創建和自定義專業設計的網站。, Kadence Starter Templates 為您提供使用 WordPress 區塊構建器的...。
  • GenerateBlocks 》將不同的功能整合至編輯器,但並不會因為過多的一維方塊造成內容過於臃腫。使用 GenerateBlocks,您只需深入學習少量的方塊,即可用於創建任何內容。, Genera...。
  • Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns 》使用 Essential Blocks for Gutenberg,即可實現您的創意視覺效果,這是適用於 WordPress 的最終區塊庫!, 使用我們易於使用的區塊,增強您使用 Gutenberg 的...。
  • VK Blocks 》這是一個擴充 Gutenberg 模塊的外掛。, [ 模塊 ], , 成員, 外框, 警示, 常問問題, 氣球, 流, 按鈕, 公關模塊, 公關內容, 邊框盒, 標題(帶副標題), 響應間距...。
  • Stackable – Page Builder Gutenberg Blocks 》終極與古鐸版衣搭檔, Stackable 是您一直在等待的終極可靠古鐸版衣搭檔。使用堅強、輕便的自訂區塊、現成設計、UI套件、全域設定和高級自訂選項建立動態網站...。

文章
Filter
Apply Filters
Mastodon