Requirement. Every header (core/heading) block needs to have a toggle control for adding or removing a custom class name to/from the resulting element. Usage example. Building an automatic table of contents generator, which will pick only the headers having the custom class name. The admin needs to easily select headers that should be used for… Continue reading Adding custom toggle control to Gutenberg Block Editor
Tag: wordpress
“Error establishing a database connection” after WordPress migration
– If you have a multisite network, try disabling it and see if the error is gone – The full error message is “*Could not find site example.com. Searched for table wp_blogs in database example_db*”. So make sure the domain you’re visiting matches one of those entries.