• Resolved altendor

    (@altendor)


    I want to add a new page template and use it in addition to the existing page template.

    I can see how to create a new template but how do I associate this new template with just one of the pages that I have on my blog site ?

    I have gone to “Write a page” in the admin interface but I cannot see any button that allows me to select which template to use with the page I am writing…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter altendor

    (@altendor)

    I have done excatly as the instructions siggest.

    I copied the existing page.php and called it news_page.php
    I put it into the themes directory
    I can now see it listed in the list where you can edit any of the page templates.

    I put the following code at the top of the news_page.php file:
    <?php
    /*
    Template Name: News_page
    */
    ?>

    I created a new page and looked for any indication that I can choose which template to use

    …I juts cant see any option to change the template for the page !!

    ..obviously I am missing something…but what ?

    The template option does NOT show up unless you have at least 2 (two) Page templates: the default page.php + another one.

    Thread Starter altendor

    (@altendor)

    I do have two templates. I copied the page.php and added another one called news_page.php so now there are two templates.

    They both get listed the right hand side where all available templates get listed for editing by the template editor.

    …..:-(

    Well, then you did something wrong. Or you might need a hard refresh (Ctrl+F5) when viewing the Write Page subpanel.
    The moment you have 2 Page templates, the blue Page Template + thing should appear on the right.

    Thread Starter altendor

    (@altendor)

    Ok thats it – CTRL+F5 – sorry for being stupid.

    Thanks for your patience.

    I go back to stumbling about in the dark;-)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing page template’ is closed to new replies.