Forums

[resolved] Sidebar not showing on single posts page (1 post)

  1. parkerjoe
    Member
    Posted 1 year ago #

    http://www.membersonlyproductions.com

    Started working with a graph paper press theme called "Widescreen." The theme actually didn't have a sidebar, but I modified the css to allow space for one and created template files etc for it. The sidebar shows up on the blog, and if I want it to it will show up in any one of my page templates (I opted out for the moment though), I just can't get it to show up on single posts. Modified the div class called "grid_2" instead of using "content," that's how I made room for the sidebar.

    Might be an unclosed </div> but I don't know what that looks like, I mostly have been modifying the css and don't really know how to write it. Help?

    Here's the code from my single.php:

    <?php get_header(); ?>

    <div class="grid_2">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    <h2 class="sub"><?php the_title(); ?></h2>
    <?php include (TEMPLATEPATH . '/apps/multimedia.php'); ?>
    <?php include (TEMPLATEPATH . '/apps/video.php'); ?>
    <?php the_content(); ?>

    <div class="clear"></div>

    <p class="postmetadata fader">
    <small>
    <?php printf(__('Posted on %1$s at %2$s.','gpp_i18n'),get_the_time(__('l, F jS, Y','gpp_i18n')),get_the_time());?>
    <?php _e('Filed under: ','gpp_i18n'); ?> <?php the_category(', '); the_tags(__(' Tags: ','gpp_i18n')); ?>
    <?php printf(__('%2$s feed.','gpp_i18n'),get_post_comments_feed_link(),__('RSS 2.0','gpp_i18n')); ?>
    <?php edit_post_link(__('Edit this entry','gpp_i18n'),'','.'); ?>
    </small>
    </p>

    <div class="navi prev left"><?php next_post_link('%link', '←', TRUE); ?></div>
    <div class="navi next right"><?php previous_post_link('%link', '→', TRUE); ?></div>
    <div class="clear"></div>

    <?php endwhile; else : ?>
    <h2 class="center"><?php _e('Not Found','gpp_i18n'); ?></h2>
    <p class="center"><?php _e('Sorry, but you are looking for something that isn\'t here.','gpp_i18n'); ?></p>
    <?php get_search_form(); ?>

    </div><!-- end post -->

    <?php endif; ?>

    <?php include (TEMPLATEPATH . '/apps/ad-main.php'); ?>

    <?php comments_template('', true); ?>

    <!-- Begin Footer -->
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic