Blank Page Template

  • Author
  • #34194

    It would be super handy for a variety of reasons, if Tempera had a “Blank” page template as a choice in the page template options.

    A blank page template would have:
    *No Header
    *No Menus
    *No Footer

    It would just be a blank page that would present whatever is entered in the WordPress editor.

    Many themes offer this functionality, but are otherwise not as awesome as Tempera. 🙂


    I created my own Blank Page template that seems to work just fine. Here’s the code:

     * Template Name: Blank Page
     * A blank custom page template.
     * The "Template Name:" bit above allows this to be selectable
     * from a dropdown menu on the edit page screen.
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>
    <?php endif; ?>

    Just put that in a file with a name like: “template-blank.php” , and put that file in the “wp-content/themes/tempera/templates” folder on your server.

    Seems to do the job and the content can be styled anyway you like using the WordPress editor.

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

The topic ‘Blank Page Template’ is closed to new replies.