How to Create a "Blank" page template
-
Hello,
I am trying to create a completely blank page (no header, footer, or anything) page template in wordpress.
I am using this PHP uploaded to my themes directory:
<?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: red;} #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>
However, when i have this page theme in my wordpress page publishing dashboard and i publish a page Nohting shows up.
literally nothing (if i hit control-u and inspect the code– its totally blank)
Does anyone know where i went wrong?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to Create a "Blank" page template’ is closed to new replies.