SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | /** | |
| 3 | - | * Template Name: Blank Page Template |
| 3 | + | * Template Name: Blank Page Template with HTML |
| 4 | * | |
| 5 | * @package WordPress | |
| 6 | * @subpackage Twenty_Eleven | |
| 7 | */ ?> | |
| 8 | <?php // essential code from header.php ?> | |
| 9 | <?php | |
| 10 | /** | |
| 11 | * The Header for our theme. | |
| 12 | * | |
| 13 | * Displays all of the <head> section and everything up till <div id="main"> | |
| 14 | * | |
| 15 | * @package WordPress | |
| 16 | * @subpackage Twenty_Eleven | |
| 17 | * @since Twenty Eleven 1.0 | |
| 18 | */ | |
| 19 | ?><!DOCTYPE html> | |
| 20 | <!--[if IE 6]> | |
| 21 | <html id="ie6" <?php language_attributes(); ?>> | |
| 22 | <![endif]--> | |
| 23 | <!--[if IE 7]> | |
| 24 | <html id="ie7" <?php language_attributes(); ?>> | |
| 25 | <![endif]--> | |
| 26 | <!--[if IE 8]> | |
| 27 | <html id="ie8" <?php language_attributes(); ?>> | |
| 28 | <![endif]--> | |
| 29 | <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!--> | |
| 30 | <html <?php language_attributes(); ?>> | |
| 31 | <!--<![endif]--> | |
| 32 | <head> | |
| 33 | <meta charset="<?php bloginfo( 'charset' ); ?>" /> | |
| 34 | <meta name="viewport" content="width=device-width" /> | |
| 35 | <title><?php | |
| 36 | /* | |
| 37 | * Print the <title> tag based on what is being viewed. | |
| 38 | */ | |
| 39 | global $page, $paged; | |
| 40 | ||
| 41 | wp_title( '|', true, 'right' ); | |
| 42 | ||
| 43 | // Add the blog name. | |
| 44 | bloginfo( 'name' ); | |
| 45 | ||
| 46 | // Add the blog description for the home/front page. | |
| 47 | $site_description = get_bloginfo( 'description', 'display' ); | |
| 48 | if ( $site_description && ( is_home() || is_front_page() ) ) | |
| 49 | echo " | $site_description"; | |
| 50 | ||
| 51 | // Add a page number if necessary: | |
| 52 | if ( $paged >= 2 || $page >= 2 ) | |
| 53 | echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ); | |
| 54 | ||
| 55 | ?></title> | |
| 56 | <link rel="profile" href="http://gmpg.org/xfn/11" /> | |
| 57 | <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> | |
| 58 | <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> | |
| 59 | <!--[if lt IE 9]> | |
| 60 | <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> | |
| 61 | <![endif]--> | |
| 62 | <?php | |
| 63 | if ( is_singular() && get_option( 'thread_comments' ) ) | |
| 64 | wp_enqueue_script( 'comment-reply' ); | |
| 65 | wp_head(); | |
| 66 | ?> | |
| 67 | </head> | |
| 68 | ||
| 69 | <body <?php body_class(); ?>> | |
| 70 | - | <div id="page" class="hfeed blank-page"> |
| 70 | + | |
| 71 | - | <div id="main"> |
| 71 | + | YOUR HTML CODE HERE - |
| 72 | only the stuff within the body tag; without the <head> section; | |
| 73 | - | <?php //end of essential header.php code ?> |
| 73 | + | if the HTML needs custom styles, possibly add a link to an essential stylesheet for the html into the upper section. |
| 74 | ||
| 75 | - | <?php //essential code of page.php ?> |
| 75 | + | |
| 76 | </html> | |
| 77 | - | <div id="primary"> |
| 77 | + |