How to specify which Gutenberg blocks are available in the editor for a page template
Using an example given here: enter link description here I’ve successfully been able to restrict the block types available globally or by post type (eg: page). But what I really would like to do is restrict the the block types by page template. I have tried using if ( is_page_template(‘page-home.php’) ) {…} but with no … Read more