Remove the page_archive.php and page_blog.php templates included in the Genesis Framework.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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' ); |