Help with Page Template
-
Hello everyone!!!
Here is the link to my blog
I wanted to make a new page template for my blog so that some pages do not contain the sidebars that are on the homepage.
Problem is, I’m having trouble doing so while convincing WordPress to extend the usable space to the borders of the page (i.e. WordPress leaves the text to within the boundries of where the sidebars would have been, even after I deleted them). I think this issue is due to the Template that Im using (cloudland), which uses these blocks which it puts the sidebar widgets and text in.
Here is the index.php of the homepage:
<?php get_header(); ?> <div class="contentLayout"> <div class="sidebar1"> <?php include (TEMPLATEPATH . '/sidebar1.php'); ?> </div> <div class="content"> <div class="Block"> <div class="Block-body"> <div class="BlockContent"> <div class="BlockContent-body"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <font color="009933"> <?php the_time('l, F jS, Y') ?> <?php the_time('g:i a'); ?> </font> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> <center>|<font color="ff0000"> Posted in <?php the_category(', ') ?> by TheHocker </font>|</center> <center> <form> <input type="button" value="<?php comments_number('No Comments','1 Comment','% Comments'); ?>" onclick="window.location.href='<?php comments_link(); ?>'" style="background-color: #ccddff; color: #000000;" /> </form></center> </div> <hr size="3" noshade> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php endif; ?> </div> <div class="BlockContent-tl"></div> <div class="BlockContent-tr"><div></div></div> <div class="BlockContent-bl"><div></div></div> <div class="BlockContent-br"><div></div></div> <div class="BlockContent-tc"><div></div></div> <div class="BlockContent-bc"><div></div></div> <div class="BlockContent-cl"><div></div></div> <div class="BlockContent-cr"><div></div></div> <div class="BlockContent-cc"></div> </div> </div> </div> </div> <div class="sidebar2"> <?php include (TEMPLATEPATH . '/sidebar2.php'); ?> </div> </div> <?php get_footer(); ?>
Now I know to make a new page template, you start it off with something like
</php /* Template Name:nosidebars */ ?>
But…..what goes after that if I want to make sure that the text extends throughout the whole page?
Thanks so much for your time….
If you need a sample of my attempted page template which didn’t work for me, please ask….
- The topic ‘Help with Page Template’ is closed to new replies.