Avidly Toc Block WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
A WordPress plugin to add Table of contents list with block editor.
★ 0stars
v2.0.0latest · 3 years ago
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/avidlywordpress/avidly-block-toc/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Custom block to generate table of contents list from content with anchor links.
Installation
- Upload the plugin files to the /wp-content/plugins/ directory, or download the ZIP and install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the 'Plugins' screen in WordPress
Requirements
- Requires at least WordPress 5.8
Development
- Get packages with
npm installcommand - Run development with
npm run startcommand (does not compress the code so it is easier to read) - Run production build with
npm run buildcommand (compresses the code down so it downloads faster)
VERY IMPORTANT: Always run production build to compile compressed, production-ready CSS and JS.
block.json
- Canonical way to register block types. Read details from Block Editor Handbook.
Translating with WP CLI
- Go to plugin folder with terminal:
cd wp-content/plugins/avidly-toc-block - Create or update POT file:
npm run make-pot - Open your PO file(s) with PoEdit & update the content from POT file and make your translations changes.
- Create or update JSON translations file:
npm run make-json - Test that your translations works
Releases
2 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.