Forums

Sidebar, um, not on the side (3 posts)

  1. praemon
    Member
    Posted 1 year ago #

    since I updated to 3.1.2, the sidebar that contains all the widgets on my site (praemon.org using NewsPress theme by WooThemes) works fine, except on the single post pages. On those, the sidebar is below the body, as if it's a continuation. Also, the footer shows on the side.

    ...?

  2. jkovis
    Member
    Posted 1 year ago #

    For some reason your single post pages are structured like:

    <div id=content" class="col-ful">
        <div id="main">
          <!-- main content goes here-->
    
          <div id="sidebar">
            <!-- sidebar content goes here-->
          </div>
    
        </div><!-- end #main -->
    </div>

    instead of:

    <div id=content" class="col-ful">
        <div id="main">
          <!-- main content goes here-->
        </div><!-- end #main -->
    
        <div id="sidebar">
          <!-- sidebar content goes here-->
        </div>
    </div>

    Open single.php and see if a </div> was deleted and/or use Firebug to try and see why the main <div> is not being closed.

  3. praemon
    Member
    Posted 1 year ago #

    Well, my single.php is obviously a lot more in-depth than your example, but I took your word for it, and without searching through and counting, I just tried changing

    <?php endif; ?>
    
    		<?php endwhile; ?>
    
    	<?php endif; ?>							
    
    		</div><!--/centercol-->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    to:

    <?php endif; ?>
    
    		<?php endwhile; ?>
    
    	<?php endif; ?>							
    
    		</div> </div> <!--/centercol-->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    ...note the extra </div> in there... and it worked perfectly. Good call. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic