PHP Help

Discussion in 'PHP' started by Hooper, Nov 25, 2009.

  1. #1
    Have a custom php template set-up in my wordpress blog. Removed the sidebars as creating a squeeze page. My problem is the page does not display outside the body. Want it to go full width of the template now that have removed the left and right sidebars. Any suggestions would be appreciated thanks here is the code:

    <?php
    /*
    Template Name: sales
    */
    ?>
    <?php get_header(); ?>
    <!--page.php-->
    <div id="content">
    <!--loop-->
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <!--post title-->
    <h1 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h1>
    <div class="postspace2">
    </div>
    <!--post with more link -->
    <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    <!--if you paginate pages-->
    <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    <!--end of post and end of loop-->
    <?php endwhile; endif; ?>
    <!--edit link-->
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    </div>
    <!--page.php end-->
     
    Last edited: Nov 25, 2009
    Hooper, Nov 25, 2009 IP
  2. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #2
    you should be looking at your CSS
     
    javaongsan, Nov 25, 2009 IP
  3. Hooper

    Hooper Active Member

    Messages:
    362
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Got it found a website that provided exactly what was looking for .... here is the php code

    <?php
    /*
    Template Name: sales
    */
    ?>
    <?php
    get_header( );
    ?>
    <div class="content">
    <div class="main ins">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class="title">
    <h2><?php the_title(); ?></h2>
    <div class="clear"></div>
    </div>

    <div class="product">
    <?php the_content(__('Read more &raquo;','cp')); ?>
    <?php edit_post_link(__('Edit Page','cp'), '<p>', '</p>'); ?>
    </div>

    <?php endwhile; endif; ?>

    <div class="clear"></div>
    </div>
    </div>
     
    Hooper, Nov 25, 2009 IP