Skip to content

Instantly share code, notes, and snippets.

@natenault
Created January 16, 2018 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natenault/dc9330464928d51bfd263293d1e0a234 to your computer and use it in GitHub Desktop.
Save natenault/dc9330464928d51bfd263293d1e0a234 to your computer and use it in GitHub Desktop.
/**
* Remove Genesis Page Templates
*
* @param array $page_templates
* @return array
*/
function nn_remove_genesis_page_templates( $page_templates ) {
unset( $page_templates['page_archive.php'] );
unset( $page_templates['page_blog.php'] );
return $page_templates;
}
add_filter( 'theme_page_templates', 'nn_remove_genesis_page_templates' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment