IS there a Wordpress Guru that can help me for 2 seconds?

Discussion in 'WordPress' started by glenv, Oct 10, 2008.

  1. #1
    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!
     
    glenv, Oct 10, 2008 IP
  2. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #2
    could you post the source for your new page.php file? It may help drill down the problem.
     
    craiger22, Oct 10, 2008 IP
  3. glenv

    glenv Peon

    Messages:
    930
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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(); ?>
     
    glenv, Oct 10, 2008 IP
  4. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #4
    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.
     
    craiger22, Oct 10, 2008 IP
  5. glenv

    glenv Peon

    Messages:
    930
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ah, its always the stupidest things.... I had somehow missed adding the

    <?php

    at the top of the page.

    Thanks!
     
    glenv, Oct 11, 2008 IP