Grow your CSS skills. Land your dream job.

[Solved] Custom Page Template Help

  • # January 19, 2010 at 2:25 pm

    Hey, Im doing a new theme and I want to use a custom page template, the only problem is that I don’t have the drop down menu for the templates..im using wordpress 2.9 with starkers theme for the base of my theme. Im not sure if I need to add a function to functions.php or what but it is driving me crazy. Let me know if you know whats up, thanks

    # January 19, 2010 at 2:49 pm

    You need to add a little piece of code to the top of your custom template:

    Code:
    < ?php
    /*
    Template Name: Name You Want to Appear In the Dropdown
    */
    ?>
    # January 19, 2010 at 5:22 pm

    Yep I put it there, i have used custom page templates before with previous versions of wp. I don’t know whats different now

    # January 19, 2010 at 5:43 pm

    I got it fixed, it was a combination of not naming the default page.php and also using theme switch, its all good now though thanks for the help doc

    # January 19, 2010 at 6:15 pm

    No worries, glad you got it sorted. Thanks for coming back and explaining what was wrong.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".