Help with creating a page template without header, footer, sidebar
-
I would like to creat a blank page template for landing pages, but cant find how to do it while keeping the style from the rest of the site.
The template I have created is here, https://dj-hire-london.co.uk/test-3/ using the code below, any help would be appreciated.
<?php /* Template Name: LPS */ ?> <html> <head> <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" /> <style type="text/css"> body { background-color: #3a3a3a; background-image: url('https://dj-hire-london.co.uk/wp-content/uploads/2013/12/dj-hire-london-background.jpg'); background-repeat: repeat; background-position: top center; background-attachment: fixed; } </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>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Help with creating a page template without header, footer, sidebar’ is closed to new replies.