[resolved] [Theme: Twenty Eleven] Custom Templates Not Showing Up (6 posts)

  1. FelicitySundog
    Posted 3 years ago #


    I have what may be a php problem. I created a child theme of Twenty Eleven and I'm trying to create a custom template for the homepage. I modified the page.php template and saved it as homepage.php for my new template.

    I have this code at the top:

     * The template for displaying Homepage.
     * @package WordPress
     * @subpackage Twenty_Eleven
     * @since Twenty Eleven 1.0

    And I've uploaded it to the proper theme folder on my webhost. However, when I go to create a new page and select this theme from the drop-down menu on the wordpress interface, it doesn't show up as an option. It only shows me 'Default,' 'Showcase,' and 'Sidebar.' Am I missing something? I didn't have to add any code to the functions.php file when I did this with Twenty Ten, but if I do now, I don't know what it is. I've googled for help, but haven't found anything to resolve this yet.

    Thank you kindly,

  2. for a page template to show in the dropdown, you need to follow the instructions in http://codex.wordpress.org/Pages#Page_Templates


  3. FelicitySundog
    Posted 3 years ago #

    Hi alchymyth,

    While I thank you for the links, those happen to be the instructions I was following when I added my extra template. It does not show up in the drop-down menu as I expected it to, based on my experiences with Twenty-Ten, which is why I am writing.

    Are there any troubleshooting tips for why this may not work? And before anyone asks, I did not use any of the already claimed php includes.


  4. those happen to be the instructions I was following when I added my extra template.

    fine - then you should have a section like this at the top of your template - if not, add it.

    Template Name: Snarfer
  5. FelicitySundog
    Posted 3 years ago #

    My humble apologies. You are correct. I completely skimmed over the fact that little bit at the top was not the same. I had copied the php comment from an existing custom template from another working site I had and I just assumed that if it worked there, it'd work here.

    But it works now. Thank you for your assistance. I was about to switch templates all together I was so frustrated.

  6. nickandrea19
    Posted 2 years ago #

    I have done everything FelicitySundog has done, as well as de-activated and re-activated by theme and I still can't get my custom template files to show up in the drop-down. What am I missing?

Topic Closed

This topic has been closed to new replies.

About this Topic