Custom page template and widegetized sidebar
-
As the title suggests, I’m trying to create a custom page template, and then call custom widget areas for that page only (by following this tutorial).
I’ve registered two new sidebars, which are showing in my Appearance – Widgets area. Then I copied the theme’s page.php file and renamed it to new-page.php. This file has been placed in the child theme folder with the following code at the top of the file and before any existing php code.
<!--?php <br ?--> /* Template Name: Blog Page */ ?>
The page is now visible as an option in Edit Page – Page Attributes – Template, but when I open a page using this template I see the following code visible at the top of the page:
/* Template Name: Blog Page */ ?>
I’ve check the Codex, which suggests using the following, but I get the white screen when I try it:
<?php /* Template Name: Blog Page */
Any ideas?
- The topic ‘Custom page template and widegetized sidebar’ is closed to new replies.