Custom template not working
-
I am working on a WP development (theme: Elegant Theme’s Devi) site in a subfolder of the old static site. One page on the WP site is accessible by the public from the live site, so I don’t want the new nav for the development site to show on it.
I created a new header file (header-new.php) with no nav bar in it
Then I created a new page template based on home.php (pageCal.php).
The top of the template looks like this:
<?php /* * Template Name: pageCal * Description: A Page Template with no top nav. */ get_header( 'header-new' ); ?>
Then I left everything else the same in the template.
The new template shows up in the list of templates inside WordPress, and I am able to apply it. But then when I update the page, it defaults back to the Default Template – it won’t stick.
Is this an issue with the theme, or the way I named the files, or anything else obvious?
- The topic ‘Custom template not working’ is closed to new replies.