• Hey
    This is my site. http://andersgiversen.com

    I’m using the White as Milk theme by Azeem Aziz. I’ve changed the stesheet, but reeally don’t understand why my sidebar goes down in the footer. I’ve removed the sidebar widgets and plced them back again, nothing changes. I’v even removed the entire WP and reinstalled. What’s wrong?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter MrFlanders

    (@mrflanders)

    Sorry for the typos, I’m working late..

    You’re missing a closing </div> – presumably the one that should site between your content and your sidebar.

    Validator report.

    in the front page template (index.php ?) is a closing div </div> missing, before the ‘get_sidebar’ line.

    Thread Starter MrFlanders

    (@mrflanders)

    Thanks alot, but I’m having trouble finding that </div>.. Here’s the index.php, do you mind checking it?

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
    				<p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php the_tags('Tags: ', ', ', '&nbsp;| '); ?> <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    These type of errors are 99.99% of the time are content related, with HTML added in the editor, as there is no validation.

    All that happens is the php code generates the HTML code for the page, so the error shown is often not the real source.

    With the validator you have a flag to Show Source, checking this adds links to the line number, your problem is around lines 700 – 703, a missing end tag for <img

    From the Validator

    Line 700, Column 263: character “<” is the first character of a delimiter but occurred as data
    …4369270062_f45c8eccd4_o.jpg” alt=”Lucky no 4″ width=”900″ height=”600/></p>

    The problem can be seen here there is a missing ” on the height="600/>

    This should be height="600"/>

    Error Line:
    <img class="alignnone" src="http://farm3.static.flickr.com/2663/4369270062_f45c8eccd4_o.jpg" alt="Lucky no 4" width="900" height="600/></a></p>

    Corrected:
    <img class="alignnone" src="http://farm3.static.flickr.com/2663/4369270062_f45c8eccd4_o.jpg" alt="Lucky no 4" width="900" height="600"/></a></p>

    Fix the error and run the page through the validator again.

    HTH

    David

    Hi. I have the same problem but since I am an autodidact, fix it through codes is beeing a pain in the head. I run the validator as you sugested to MrFlanders some posts before. I can see two or three problems similars to his, but I don´t know where exactly do I have to make the changes. Validator suggests me to go to line number XX, but I don´t know how to search those lines, in which document.

    I would aprecciate a lot your help in this.

    PD: The sidebar moves to footer just when I want to read the full article, not in homepage.

    PD2: this is the link to tha webpage

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My sidebar goes to the footer’ is closed to new replies.