WordPress.org

Forums

[resolved] Page Template (10 posts)

  1. Steven Jones
    Member
    Posted 7 years ago #

    I don't have the option to pick a different template for my pages, isn't it supposed to be under Page Order in the page options?

    Please can someone steer me in the right direction,

    Cheers,
    Steve

  2. Khairil Zhafri
    Member
    Posted 7 years ago #

    Don't really get what you mean. Can you explain more?

  3. Steven Jones
    Member
    Posted 7 years ago #

    Well I have this page that needs to look slightly different from the rest of the site.

    I'm not sure, but before I'm pretty sure all I needed to do was make a copy of the template page.php, change it, rename it

    Then when I create a page, in the boxes on the right hand side (page slug, page order etc) there used to be a page template option where you can choose from a drop down list.

    Hope that's better info.

    Cheers,
    Steve

  4. Kafkaesqui

    Posted 7 years ago #

    Usually the dropdown does not appear if WordPress finds no Page templates with a theme. So:

    1. When you changed your copy of page.php, did you follow the directions here:

    http://codex.wordpress.org/Pages#Creating_your_own_Page_Templates

    2. Is the template uploaded to the active theme's directory?

  5. moshu
    Member
    Posted 7 years ago #

    In my experience WP needs two [2] Page templates to display the dropdown menu..

  6. Kafkaesqui

    Posted 7 years ago #

    moshu, I just tested that with the default theme and saw no problem with having only the links.php Page template (or archives.php -- didn't matter which one I left in).

  7. moshu
    Member
    Posted 7 years ago #

    Aha! Now I see: it has to have one template with template name at the top - since I've never deleted the default page.php when testing, I thought it needed two for the dropdown.
    It means the dropdown shows up when there is a "named" Page template.
    I stand corrected.

  8. Steven Jones
    Member
    Posted 7 years ago #

    Yeah, thanks guys, needs two templates in order to offer the drop down.

    Resolved!

  9. Boris Beo
    Member
    Posted 6 years ago #

    Guys,

    just to let you know. I had the same problem. Naming templates would not show me the drop down menu, no matter how many templates I created. The problem was that I had no theme selected in DESIGN section (working with a custom blog template, not sure how this could happen). Just to let you know, if you have this problem, double check that you have a theme selected in Design. ;)

  10. bkk_alien
    Member
    Posted 6 years ago #

    thanks, brs, for pointing me in the right direction!

    looking at DESIGNS (now TEMPLATES) after updating to 2.7 i realized there was NO template available at all from dashboard...!?

    to fix that i went to edit the database in phpmyadmin:

    in wp_options the table current_theme was somehow set to an old, deceased theme

    after changing it to the current theme name, all works fine, including selecting a page template!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.