WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar gone mental! (6 posts)

  1. Dibergio
    Member
    Posted 5 years ago #

    Whoops! I was happily editing some of the styles for posts and have only gone and done something thats made the sidebar start after the main post. No probs on the homepage though. No idea what I've done - Im no expert here.

    The blog is http://www.newtoylondon.com/blog any help would be very much appreciated.

    Thanks

  2. chaoskaizer
    Member
    Posted 5 years ago #

    The template structure is different from the "frontpage". On your frontpage the div#body_right (sidebar) is inside the div#body wrapper ↓

    <body>
    <div id="page">
         <div id="header"></div>
         <div id="menu"></div>
              <div id="body">
                   <div id="body_left">...</div>
                   <div id="body_right">...</div>
              </div> <!-- /#body wrapper -->
    <div class="clear"/>
    <div id="footer">...</div>
    </div>
    </body>

    but on single page the div#body_right is outside the div#body wrapper ↓.

    <body>
    <div id="page">
         <div id="header"></div>
         <div id="menu"></div>
              <div id="body">
                   <div id="body_left">...</div>
              </div> <!-- /#body wrapper -->
                   <div id="body_right">...</div>
    <div class="clear"/>
    <div id="footer">...</div>
    </div>
    </body>

    its pretty obvious what you need to do. double check your single.php (if there is any)

  3. Dibergio
    Member
    Posted 5 years ago #

    Hi thanks for the pointer but looking at my single.php I can't seem to find the right area to edit. I've included the contents of it if anyone would care to help?

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
                    <div class="post-top">
                        <div class="post-title">
                        	<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php if ( function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a></h2>
                            <h3>
                            	Filed Under (<span><?php the_category(', ') ?></span>) by <span><?php the_author() ?></span> on <?php the_time('d-m-Y') ?>
                            </h3>
    						<?php if ( function_exists('the_tags')) the_tags('<h4>Tagged Under : <span>', ', ', ' </span></h4>'); ?>
                        </div>
                    </div>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
                    <!--<div class="postmetadata">
                        <div class="alignright">
    						<a><?php comments_number('<span>(0)</span> Comments', '<span>(1)</span> Comment', '<span>(%)</span> Comments'); ?></a>
                        	&nbsp;&nbsp;&nbsp;<?php edit_post_link('Edit', '', '&nbsp;&nbsp;&nbsp;'); ?>
                            <a class="readmore" href="<?php the_permalink() ?>" ><span>Read More</span></a>
                        </div>-->
                        <div class="clear"></div>
                    </div>
    			</div>
    
    	<?php comments_template(); ?>
    
    	<?php endwhile; else: ?>
    
    		<p>Sorry, no posts matched your criteria.</p>
    
    <?php endif; ?>
    
    	</div>
    
    <?php get_footer(); ?>

    Any help would be greatly appreciated!

    Thanks

  4. chaoskaizer
    Member
    Posted 5 years ago #

    ok I'd check the file myself the sidebar code is inside the footer.php

  5. Dibergio
    Member
    Posted 5 years ago #

    I see the code in footer.php but I've never edited that code.

    I've restored the original footer.php and single.php and index.php to no avail - the only other code I've edited would be style.css as far as I can remember.

  6. Dibergio
    Member
    Posted 5 years ago #

    Okay so I worked it out - I had disabled comments and when renabled it all worked again - weird!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.