Wordpress: 1 Page Diffrent Look
Do you have one page that you want to have a different look than the rest of your theme?
I recently need to do this and didn’t really know I could. My first thought was to just make a page in my text editor and upload it… But then I thought maybe I could find a plugin… after a little more thought I dug through the WordPress docs and found a very simple and elegantly solution.
Here is the way it’s done. Open your text editor and paste this in:
<?php
/*
Template Name: NewPageLook
*/
?>
save it to your theme directory and name it NewPageLook.php
under the last line ?> you can add what ever you wish to be on this new blank page. When you want your new page to use this new template just select it under the heading Page Template :

Don’t for get to add the loop:
<div id=”content”>
<div class=”entry”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2><?php the_title(); ?></h2>
<?php the_content(’<p class=”serif”>Read the rest of this page »</p>’); ?>
<?php wp_link_pages(array(’before’ => ‘<p><strong>Pages:</strong> ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link(’Edit this entry.’, ‘<p>’, ‘</p>’); ?>
</div>
Leave a Reply