Changing layout using templates??
-
Hi, I have been trying for two or three days to sucessfully create a new template for my website without any luck. I understand about creating a new template, which I have done, that’s fine. The trouble is my original layout has a right hand sidebar, and my new template I want to have a
sidebar on either side. I have removed the get_sidebar from the new file as I do not need the usual info in there, I have images and stuff to go in either one.
How do I get the php file to display the new css styles? I have tried inputing new div tags into the new php file but it doesn’t seem to be working. I can get the content the right size but no sidebars?<?php
/*
Template Name: home
*/
?><?php get_header() ?>
<div id=”container2″>
<div id=”content2″>
<div class=”sidebar2″></div><?php the_post() ?>
<div id=”post-<?php the_ID() ?>” class=”<?php sandbox_post_class() ?>”>
<h2 class=”entry-title”><?php the_title() ?></h2>
<div class=”entry-content”>
<?php the_content() ?><?php wp_link_pages(‘before=<div class=”page-link”>’ . __( ‘Pages:’, ‘sandbox’ ) . ‘&after=</div>’) ?>
<?php edit_post_link( __( ‘Edit’, ‘sandbox’ ), ‘<span class=”edit-link”>’, ‘</span>’ ) ?>
</div>
</div><!– .post –><?php if ( get_post_custom_values(‘comments’) ) comments_template() // Add a key+value of “comments” to enable comments on this page ?>
</div><!– #content –>
</div><!– #container –><?php get_footer() ?>
Thats what I have in my new file, what am i doing wrong, I have tried to follow codex instructions on this site but they only take me so far.
- The topic ‘Changing layout using templates??’ is closed to new replies.