Custom Block Attributes
Allow users to add custom HTML attributes to blocks in the Block Editor.
★ 0stars
1.1kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wp-forge/custom-block-attributes/archive/refs/heads/main.zipAlso on Packagist as wp-forge/custom-block-attributes:
composer require wp-forge/custom-block-attributesFrom the readme
Custom Block Attributes
A WordPress plugin that allows users to add custom HTML attributes to any block in the WordPress Block Editor (Gutenberg).
Description
Custom Block Attributes extends the WordPress Block Editor by adding the ability to set custom HTML attributes on any block. This is particularly useful for developers and advanced users who need to add specific attributes for styling, JavaScript functionality, accessibility, or third-party integrations.
Features
- Add custom HTML attributes to any WordPress block
- Simple and intuitive user interface in the block inspector panel
- Easily add, edit, and remove custom attributes
- Attributes are saved with the block and rendered on the frontend
- Works with all core and custom blocks
Installation
Manual Installation
1. Download the plugin zip file
2. Log in to your WordPress admin panel and navigate to Plugins → Add New
3. Click the "Upload Plugin" button at the top of the page
4. Choose the downloaded zip file and click "Install Now"
5. Activate the plugin through the 'Plugins' menu in WordPress
Using Composer
Usage
1. Edit a post or page using the Block Editor
2. Select any block you want to add custom attributes
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.