Title: Create Blank Page Template
Last modified: August 30, 2016

---

# Create Blank Page Template

 *  Resolved [suly00](https://wordpress.org/support/users/suly00/)
 * (@suly00)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/create-blank-page-template/)
 * Hi,
 * Can anyone help with setting up a blank page template? I need help with the code
   for the page itself.
 * Thank you in advance.

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

 *  [Tom Carney](https://wordpress.org/support/users/tecdoc/)
 * (@tecdoc)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/create-blank-page-template/#post-6562853)
 * Hello:
 * Here is the [link](https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/)
   to help you setup a page template within your theme.
 * Good Luck.
 *  [Josh](https://wordpress.org/support/users/ocmarketingwiz/)
 * (@ocmarketingwiz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/create-blank-page-template/#post-6562856)
 * I found this wordpress page:
    [https://wordpress.org/support/topic/how-do-i-make-a-blank-page-template?replies=10](https://wordpress.org/support/topic/how-do-i-make-a-blank-page-template?replies=10)
 * open a text doc. name it blank-page.php
 * copy this code (you can find it on the page) into the .php doc
 *     ```
       <?php
       /**
       	Template Name: Page with background only
   
       */
       ?>
       <html>
       <head>
       <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
       <style type="text/css">
       body { background-color: #cccccc; background-image: url('http://uffekirkegaard.dk/wp-content/uploads/2010/10/bg.jpg'); background-repeat: repeat-y; background-position: top center; background-attachment: scroll; }
       #page-content { width: 640px; margin: 20px auto; }
       #page-content p { font-size: 1em; font-family: Georgia; line-height: 1.5em; text-align: justify; }
       </style>
       <title><?php wp_title( '|', true, 'right' ); bloginfo('name'); ?></title>
       <?php wp_head(); ?>
       </head>
   
       <body>
       <?php while (have_posts()) : the_post(); ?>
       <div id="page-content">
       	<?php the_content(); endwhile; ?>
       </div>
       </body>
       </html>
       ```
   
 *     ```
       then for to match the text to your site: put this code between Style tags
       <style></style>
   
       #page-content p { font-size: 1em; font-family: Georgia; line-height: 1.5em; text-align: justify; }
       ```
   
 * upload the .php to your wordpress theme in your directory
 * login to your wp open a new page and you should see it in yout layout dropdown
   options.
 * hope this helps.
 *  [Josh](https://wordpress.org/support/users/ocmarketingwiz/)
 * (@ocmarketingwiz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/create-blank-page-template/#post-6562858)
 * Heres one more example
    click on the file
 * [https://github.com/Verdi/Blank-WordPress-Page](https://github.com/Verdi/Blank-WordPress-Page)
 *  [Josh](https://wordpress.org/support/users/ocmarketingwiz/)
 * (@ocmarketingwiz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/create-blank-page-template/#post-6562859)
 *  Thread Starter [suly00](https://wordpress.org/support/users/suly00/)
 * (@suly00)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/create-blank-page-template/#post-6563035)
 * Thank you to both of you, sorted now.

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/the-box/1.5.4/screenshot.png)
 * The Box
 * [Support Threads](https://wordpress.org/support/theme/the-box/)
 * [Active Topics](https://wordpress.org/support/theme/the-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/the-box/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/the-box/reviews/)

## Tags

 * [Blank](https://wordpress.org/support/topic-tag/blank/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 5 replies
 * 3 participants
 * Last reply from: [suly00](https://wordpress.org/support/users/suly00/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/create-blank-page-template/#post-6563035)
 * Status: resolved