• 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.

    …?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter praemon

    (@praemon)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar, um, not on the side’ is closed to new replies.