• hi everyone,

    i’d like to modify my theme so there is a column or sidebar on the right side of the single post pages.

    The current single page looks like this:

    http://www.gardenfork.tv/?p=1048

    here is the code for a single post

    <?php get_header(); ?>
    
            	<div id="content">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    			<?php if ( get_option( 'woo_breadcrumbs' ) == 'true') { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
    
                <div class="post" id="post-<?php the_ID(); ?>">
                    <h1><?php the_title(); ?></h1>
                    <p class="meta">Posted on <?php the_time('F jS, Y') ?> by <?php the_author() ?> in <?php the_category(', ') ?></p>
    
                    <div class="entry">
    					<?php if (get_option('woo_image_single') == 'true' ) woo_get_image('image',get_option('woo_single_width'),get_option('woo_single_height'),'thumbnail alignleft'); ?>
                        <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
                        <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
                        <!--
                        <?php trackback_rdf(); ?>
                        -->
    
                        <?php edit_post_link('Edit this entry','','.'); ?>
    
                    </div>
                    <div class="fix"></div>
    
                </div>
    
            <!-- MPU 300x300 ad -->
            <?php if (get_option('woo_ad_content') == 'true') { if (get_option('woo_ad_content_adsense') <> "") echo stripslashes(get_option('woo_ad_content_adsense')); else { ?>
                <div id="advert_content">
                    <a href="<?php echo get_option('woo_ad_content_url'); ?>"><img src="<?php echo get_option('woo_ad_content_image'); ?>" width="468" height="60" alt="advert" /></a>
                </div>
            <?php } }?>	                
    
            <?php comments_template(); ?>
    
            <?php endwhile; else: ?>
    
                    <p>Sorry, no posts matched your criteria.</p>
    
            <?php endif; ?>
    
                </div><!--content-->		
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • Thread Starter erochow

    (@erochow)

    sorry, forgot to add that i’d appreciate any suggestions on if and how to do this, as i am not the greatest at the coding world of WP.

    thanks, eric.

Viewing 1 replies (of 1 total)
  • The topic ‘adding a right sidebar or column to single page’ is closed to new replies.