by onlinewebgrow on WordPress.org
Add customizable anchor links as text or buttons with custom colors to create smooth in-page navigation in WordPress.

Button style options and color settings
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
This plugin is developed using modern JavaScript and build tools. The source code is available in the /src directory.
npm installnpm run startnpm run build/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/index.js – Compiled and minified JavaScript/build/index.asset.php – WordPress dependencies and version information/build/style-index.css – Compiled and optimized CSSThe 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"
}
}