I want to add a side bar into custom post templates
-
What I am trying to do is add a side bar into a set of custom post templates, so that I can have different sidebar content for each template.
Looking at single.php, which is the base for each custom template, the code is:
‘get_header(); ?>
<div id=”container”>
<div id=”content” role=”main”>
<?php
get_template_part( ‘loop’, ‘single’ );
?>
</div><!– #content –>
</div><!– #container –>
<?php get_sidebar(); ?>’What needs changing to effectively add a column to the left that is about 220px wide, leaving the rest for the main post content.
I have played with this all day, trying different things, but have now just about given up, so need to ask.
Thanks
- The topic ‘I want to add a side bar into custom post templates’ is closed to new replies.