WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Page Templates in 3.4 (15 posts)

  1. mattmuir
    Member
    Posted 1 year ago #

    Hi. It appears that Page Templates have disappeared in 3.4. I'm running Safari for Mac 5.1.3.

    They are still mentioned in the help dropdown at the top of the screen...
    Template - Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you’ll see them in this dropdown menu.

    Unsure what else I can do to check.... Is 3.4 looking for Page templates in a different area?

  2. govpatel
    Member
    Posted 1 year ago #

    They show fine me on my theme in Page Attributes.

  3. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    @mattmuir
    Have you moved to your live site or still on local host?

  4. mattmuir
    Member
    Posted 1 year ago #

    Live site. I'm wondering if the implementation of page templates may have altered slightly, which is causing the templates to not be considered page templates. I've also posted with the theme designer...

  5. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Please post your URL.

  6. mattmuir
    Member
    Posted 1 year ago #

  7. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    It is coming up nicely. What exactly do you want to do on your site? What features are you looking for?

  8. mattmuir
    Member
    Posted 1 year ago #

    It's not that the pages aren't coming up nicely, it's just that I can't choose a page template other than the default. So when you click the "Feed the Gators" button, it is supposed to bring up a form to fill in - but I can't specify that page template.

    Most themes use templates with names like 1-column, 2 columns.

  9. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Well, the page is coming up. But there is no form. You just need to use a form there. Nothing else.

  10. mattmuir
    Member
    Posted 1 year ago #

    Krishna - you're now at the same place I am. There is no form showing because the Page Template called "Job Post Submit" cannot be selected because the Page Template selection box is not appearing in 3.4.

    Can anyone else assist please?

  11. govpatel
    Member
    Posted 1 year ago #

    Can you check if you have the template in theme folder if the template is there check if you have right name for template.

    <?php
    /*
    Template Name: Your template Name
    */
    ?>
  12. mattmuir
    Member
    Posted 1 year ago #

    @govpatel... I will try to append the code when I get back to the office.

    The issue stems from the fact that 3.4 hides the drop down selection if only a default page template exists. My theme has other page templates, but they are not triggering the drop down box to appear, which makes me wonder if there is a new coding convention for page templates.

  13. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    makes me wonder if there is a new coding convention for page templates

    There is a known issue with page template - namely:

    <?php /* Template Name: Wibble */?>

    won't work but:

    <?php
    /*
    Template Name: Wibble
    */?>

    will. This should be corrected in the next WP update.

  14. mattmuir
    Member
    Posted 1 year ago #

    Thanks @esmi... Fixed!!

  15. mattmuir
    Member
    Posted 1 year ago #

    Oops... Resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic