I have a custom "page.php" on my site: http://www.freebiefanatic.com/print-coupons to do that I created a new page template without the sidebar. Everything is ok except if you look at the new page it is not centered and the addon plugin feature "share" is at the top of the site. Its got to be something to do with a couple of </div> tags but I cannot figure it out. Help please!
Here is the code for the new template for the page without the toolbar: /* Template Name: coupon */ ?> <?php get_header(); ?> <div id="page" class="clearfix"> <div id="contentleft2"> <div id="content"> <div class="singlepost"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="subhead"> <h1 class="pagetitle"><?php the_title(); ?></h1> </div> <div class="post" id="post-<?php the_ID(); ?>"> <div class="entry"> <?php the_content(); ?> <div style="clear:both;"></div> </div> </div> </div> <?php endwhile; endif; ?> <?php get_footer(); ?><b></b> ============== Here is the code for the sidebar : <?php /* Template Name: Sidebar Right (the wide one) */ ?> </div> </div> <div id="contentright"> <div id="sidebar"> <ul> <li> <?php include (TEMPLATEPATH . '/siteguide.php'); ?> </li> <li> <?php include (TEMPLATEPATH . '/banner300.php'); ?> </li> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?> <?php endif; ?> </ul> </div> </div> ============================== All I did was remove this from the original page.php template to make the new one: <?php get_sidebar(); ?>
hmmm, that is strange. It looks to me like you may need to add two </div>'s into your new page like this. <?php endwhile; endif; ?> </div> </div> <?php get_footer(); ?><b></b> Code (markup): That is the only difference i can see.
Ah, its always the stupidest things.... I had somehow missed adding the <?php at the top of the page. Thanks!