Support » Fixing WordPress » Adding new page templates

  • How do I add new page templates and make them show up in the PageTemplate menu when making or editing a page? Now there are only Default Template, Links and Archives to choose from, but I want to make pages that look differently from other pages.
    I have created a new .php and it shows up as a ‘theme file’ in the theme editor, but it still doesn’t show up as a Page Template to choose from when making pages.
    Does anyone have a suggestion?

Viewing 6 replies - 1 through 6 (of 6 total)
  • ok bud.. just make sure that your template page looks like this… Where it says “New Template”, put the name of the template you are making (i.e. Photo Gallery)

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

    <?php get_header(); ?>

    –>Your content will go here<–

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thanks for the help! However when I make a page template and don’t put in the call for the sidebar, it still shows up on the page which uses the template. Any ideas?

    I don’t know about your theme… but if it’s a modification of some other – many themes call for the sidebar from inside the footer.php.

    mine is just a mod of the default theme and it works just fine…

    Mine is a mod of the default theme too. And I can’t find anywhere else where the sidebar is called…

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