diff --git a/functions.php b/functions.php index 013a0b5..8783175 100644 --- a/functions.php +++ b/functions.php @@ -201,3 +201,11 @@ function redirect_private_pages() { } } add_action( 'pre_get_posts', 'HM_Handbook\redirect_private_pages' ); + +/** + * Add no title page template. + */ +add_filter( 'theme_page_templates', function( $templates ) { + $templates['page-templates/page-no-title.php'] = __( 'Hide Title', 'hm-handbook' ); + return $templates; +} ); diff --git a/index.php b/index.php index 315ab3f..6e3d64c 100644 --- a/index.php +++ b/index.php @@ -24,9 +24,18 @@ - - - +