WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Page Attributes – No Template Selection dropdown

[Resolved] Page Attributes – No Template Selection dropdown

  • Using v 3.4.2. My site is hosted by GoDaddy

    The problem I am trying to solve is that there is no Template Selection dropdown appearing in the Page Attributes box when I create a new page. The only options in the PA box are Parent and Order.

    I have created a custom template, which I understand is required for the Template Selection dropdown to appear, but it still doesn’t. I have searched the forums on this topic, but most of the posts are for earlier versions and end up talking about how to correctly write the comment block at the top of my template file (BluesD1.php). But there are differing suggestions on what is correct.

    I have tried both 5 lines and 3 lines and neither fixed the problem

    Five lines

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

    Three lines

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

    Which one of these is best practice for 3.4.2, or is there something I am missing/neglecting?

    Also, when using a custom theme, exactly where should the template be placed? I have placed BluesD1.php directly in wp-content/themes. Should it be there or under my custom theme folder i.e. at wp-content/themes/MyCustomTheme/BluesD1.php

    Here again I have tried both, with no success.

    Appreciate any help or guidance you can provide

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi
    Forum Moderator

    @esmi

    Thanks esmi. I already read that page which says to place the file under wp-content/themes. It was only after searching the forums that I learned that perhaps it should be under wp-content/themes/MyCustomTheme.

    After reading it again, per your suggestion it seems the correct answer is to use the 5 line format for the comment block and to place the template file under wp-content/themes (and not under the MyCustomTheme subfolder.

    I’ve done all this and still there is no Template Selection dropdown in the Page Attributes box, only Parent and Order.

    Can you confirm that my conclusions in my 2nd paragraph is correct, and also how to proceed given that I have implemented the conclusions in the 2nd paragraph?

    thanks

    esmi
    Forum Moderator

    @esmi

    it seems the correct answer is to use the 5 line format for the comment block and to place the template file under wp-content/themes

    Incorrect. The new template file must be placed in your current theme’s own folder (eg wp-content/themes/MyCustomTheme).

    Bingo !!!

    That did it.

    Thank you so much for your prompt and correct advice. Exactly what this WP newbie needed.

    esmi
    Forum Moderator

    @esmi

    Glad I could help 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Page Attributes – No Template Selection dropdown’ is closed to new replies.