diff --git a/page-templates/color-gray.php b/page-templates/color-gray.php index 17e97af..f44cacf 100644 --- a/page-templates/color-gray.php +++ b/page-templates/color-gray.php @@ -6,6 +6,10 @@ * @package Music Theme */ -// This template is all handled by CSS, so we're -// just replicating the single.php template here. -get_template_part( 'single' ); \ No newline at end of file +// This template is all handled by CSS, so we're just +// replicating the single.php or page.php templates here. +if ( is_single() ) { + get_template_part( 'single' ); +} else if ( is_page() ) { + get_template_part( 'page' ); +} \ No newline at end of file diff --git a/page-templates/color-pink.php b/page-templates/color-pink.php index 770a633..7a472bb 100644 --- a/page-templates/color-pink.php +++ b/page-templates/color-pink.php @@ -6,6 +6,10 @@ * @package Music Theme */ -// This template is all handled by CSS, so we're -// just replicating the single.php template here. -get_template_part( 'single' ); \ No newline at end of file +// This template is all handled by CSS, so we're just +// replicating the single.php or page.php templates here. +if ( is_single() ) { + get_template_part( 'single' ); +} else if ( is_page() ) { + get_template_part( 'page' ); +} \ No newline at end of file diff --git a/page-templates/color-white.php b/page-templates/color-white.php index 351ccca..4a853d1 100644 --- a/page-templates/color-white.php +++ b/page-templates/color-white.php @@ -6,6 +6,10 @@ * @package Music Theme */ -// This template is all handled by CSS, so we're -// just replicating the single.php template here. -get_template_part( 'single' ); \ No newline at end of file +// This template is all handled by CSS, so we're just +// replicating the single.php or page.php templates here. +if ( is_single() ) { + get_template_part( 'single' ); +} else if ( is_page() ) { + get_template_part( 'page' ); +} \ No newline at end of file diff --git a/page-templates/hide-header.php b/page-templates/hide-header.php index 27ccdcc..31eebca 100644 --- a/page-templates/hide-header.php +++ b/page-templates/hide-header.php @@ -6,6 +6,10 @@ * @package Music Theme */ -// This template is all handled by CSS, so we're -// just replicating the single.php template here. -get_template_part( 'single' ); \ No newline at end of file +// This template is all handled by CSS, so we're just +// replicating the single.php or page.php templates here. +if ( is_single() ) { + get_template_part( 'single' ); +} else if ( is_page() ) { + get_template_part( 'page' ); +} \ No newline at end of file