From d64fcb72d34b2432bfb578ebd87fdf8b31be8d37 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Thu, 15 Sep 2016 11:09:26 -0400 Subject: [PATCH] working on template problem I am having some issues with the template page. I think with the help I just got it should be fixed. --- functions.php | 2 +- page-chamber.php | 36 ------------------------------------ sections/interior-page.php | 34 +++++++++++++++++++++++++--------- 3 files changed, 26 insertions(+), 46 deletions(-) delete mode 100644 page-chamber.php diff --git a/functions.php b/functions.php index aa5079e..e99f1a7 100644 --- a/functions.php +++ b/functions.php @@ -211,7 +211,7 @@ add_filter( 'custom_page_templates', function( $now_templates ) { // this template by its slug in our index.php using get_page_template_slug // Below are some commented examples of custom quasi-templates. $templates = array( - // 'some-custom-page-template' => 'Some Custom Page Template', + 'page-chamber' => 'Chamber Page' // 'any-template-slug' => 'Sample Template' , ); diff --git a/page-chamber.php b/page-chamber.php deleted file mode 100644 index 97ea06c..0000000 --- a/page-chamber.php +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - -
-
-
- "; - echo "
"; - echo "
"; - get_template_part('parts/chamber-sidebar-left'); - echo "
"; - echo "
"; - get_template_part('parts/main-content'); - echo "
"; - - echo "
"; - echo "" - include "sections/footer.php"; - include "sections/copyright.php"; - ?> -
-
-
-
- - - \ No newline at end of file diff --git a/sections/interior-page.php b/sections/interior-page.php index 6f60bfd..c9ed630 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -14,15 +14,31 @@ ?>
- "; - get_template_part('parts/main-content'); - echo "
"; - echo "
"; - get_sidebar(); - echo "
"; - } - ?> + ID ) == "page-chamber") { ?> + + +
+
+
+ get_template_part('parts/chamber-sidebar-left') +
+
+ get_template_part('parts/main-content') +
+
+
+ + + + "; + get_template_part('parts/main-content'); + echo ""; + echo "
"; + get_sidebar(); + echo "
"; + } ?> + \ No newline at end of file -- 2.17.1