Page Templates (5 posts)

  1. ubahmapk
    Posted 9 years ago #

    For some reason my Page Templates that have historically worked just fine are no longer showing up in the page edit dialog. In fact, it says the theme is broken b/c it's missing a template file.

    But I've checked the FTP directories and all the files are there. And the site is using the theme - except for my page templates.

    What am I missing?

  2. syncbox
    Posted 9 years ago #

    Did you check the top of each page template to see that the markup that designates it as a template is there? Example:

    Template Name: Wide Page

    if it isn't, the template won't show up in the Page Template menu on the edit/write page admin screen... and then wouldn't use the that template, of course.

  3. moshu
    Posted 9 years ago #

    More than that...
    You need the default (page.php) AND your own to have the Page Template dropdown showing up!

  4. ubahmapk
    Posted 9 years ago #

    Yes, I have the Template Name: Home code at the top of the file.

    moshu, I don't remember needing the page.php file before? Has that changed? Will just any generic file do? I guess I could copy the index.php to page.php and see if that works....

  5. ubahmapk
    Posted 9 years ago #

    I copied the index.php file to page.php, but I still only get the "Default Template", "Archives", and "Links" templates on my edit page. And it still says my theme is broken.

Topic Closed

This topic has been closed to new replies.

About this Topic