Viget Blocks Toolkit
by Viget · github.com/vigetlabs/viget-blocks-toolkit · website
★ 7stars
1release downloads
1.4kcomposer installs
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/vigetlabs/viget-blocks-toolkit/releases/download/v1.1.8/viget-blocks-toolkit.zipAlso on Packagist as viget/viget-blocks-toolkit:
composer require viget/viget-blocks-toolkitFrom the readme
Viget Blocks Toolkit
This toolkit was made to simplify the process of registering custom blocks with ACF Pro. It also adds several additional features to the block editor such as Block Icons and Breakpoint Visibility.
Creating Custom Blocks in your Theme
To create a block in your theme, simply create a blocks folder in the root of your theme directory. Each block should have its own folder and a block.json file. The block.json file should contain the block configuration. You can then use a render.php file (or render.twig file if Timber/Twig is supported) to render the block. By default, the blocks that support jsx will automatically render using the plugin's jsx.php file.
Customizations
block.json
tagName
Useful when using the built-in render file for jsx supported blocks, tagName can be set in block.json to specify the outer tag for the block. (By default it uses section).
innerContainer
You can disable the inner container wrapper by setting the value of innerContainer in supports to false.
autoId
Blocks do not render a generated html id attribute by default. Opt in by setting autoId in supports to true:
When enabled, blockattrs() outputs an id built from the block name
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.1.8 | Aug 31, 2026 | viget-blocks-toolkit.zip | 0 |
| v1.1.6 | May 27, 2026 | viget-blocks-toolkit.zip | 1 |
| v1.1.5 | Mar 25, 2026 | — | — |
| v1.1.4 | Feb 18, 2026 | — | — |
| v1.1.3 | Dec 22, 2025 | — | — |
| v1.1.2 | Nov 17, 2025 | — | — |
| v1.1.1 | Aug 13, 2025 | — | — |
| v1.1.0 | Mar 5, 2025 | — | — |
| v1.0.9 | Jan 31, 2025 | — | — |
| v1.0.8 | Jan 22, 2025 | — | — |
| v1.0.7 | Jan 15, 2025 | — | — |
| v1.0.6 | Jan 15, 2025 | — | — |
| v1.0.5 | Jan 14, 2025 | — | — |