Skip to content

Instantly share code, notes, and snippets.

@justintadlock
Created April 29, 2021 14:23
Show Gist options
  • Save justintadlock/74fa7c61c692423cc1fcefd9a0ab8e5f to your computer and use it in GitHub Desktop.
Save justintadlock/74fa7c61c692423cc1fcefd9a0ab8e5f to your computer and use it in GitHub Desktop.
Remove block-templates support from Gutenberg.
<?php
// Drop the below in theme functions.php.
add_action( 'after_setup_theme', function() {
remove_theme_support( 'block-templates' );
} );
@markhowellsmead
Copy link

This doesn't appear to have any effect with the current Gutenberg plugin active. Is there an updated alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment