• Resolved jbento

    (@jbento)


    I created this blog: https://www.thegpscoach.com/wordpress/

    Please scroll to the bottom of the page, and you will see the light green background is above the “Powered by WordPress…” area.

    Scroll back up and click on “Computer Tips” in the right hand column.

    Scroll down to the bottom of that page.

    You will notice the light green background at the bottom of the page, goes beyond the dark green section where the “Powered by WordPress…” area is and it also cuts off part of that area on the right.

    I also notice that the Search Box and everything below the Search Box that is on the right of the 1st page is on the right and looks ok, BUT when you go to the page where the footer is messed up, the Search Box and everything below that falls at the bottom of the post and that could be a problem why the footer is messed up. That also occurs on the “General” and “Goals” pages links that is under the “Computer Tips” links.

    Can anyone tell me how to fix that?

    Any help will be appreciated.

    Thanks in advance!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • probably in the category.php or categories.php – whatever you have – there are two closing </div> missing.

    you need to check that every div is closed properly in the proper order.

    Thread Starter jbento

    (@jbento)

    I am trying to figure this out, but I can’t make it work. It looks better than before, but now I can’t get the Search moved up on the right side. Can you please look at the below code and let me know if you see anything.

    <?php get_header(); ?>
    
    <div id="content"> </div>
    	<div id="content-inner">
    
    <div id="main">
    
    <h2 id="sectiontitle"><?php single_cat_title('Category: '); ?></h2>
    
    <?php if (have_posts()) : ?>
    
    	<?php while (have_posts()) : the_post(); ?>
    
    	<div class="post" id="post-<?php the_ID(); ?> </div>
    
    	<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    		<div class="entry">
    				<?php the_content(__('Read more &raquo;')); ?>
    		</div>
    
    		<div class="postmetadata">
    		 <?php if (get_the_tags()){?>
    		 		  	<p>Tags: <?php the_tags('') ?></p>
    		<?php } ?>
    			<p><img style="vertical-align:-5px;" alt="categories" src="<?php bloginfo('template_directory'); ?>/images/category.gif" height="16" width="16" /> <?php the_category(', ') ?> | <?php the_author_posts_link(); ?>  | <?php the_date(); ?> | <img style="vertical-align:-5px;" alt="comments" src="<?php bloginfo('template_directory'); ?>/images/comment.gif" height="16" width="16" /> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> <?php edit_post_link('Edit',' ',''); ?></p>
    
    			</div> 
    
    		<?php comments_template(); ?>
    
    </div>
    
    	<?php endwhile; ?>
    
    	<div id="navigation">
    			<div class="fleft"><?php next_posts_link('&laquo; Older') ?></div>
    					<div class="fright"> <?php previous_posts_link('Newer &raquo;') ?></div>
    
    	<?php else : ?>
    
    	<div class="post">
    	<div class="entry">
    		<h2>Not Found</h2>
    		<p>Sorry, you are looking for something that isn't here.</p>
    	</div>
    	</div>	
    
    	<?php endif; ?>
    
    	<!-- eof main -->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    i had to rewrite it: just copy everything and replace the content of the file that you posted.

    <?php get_header(); ?>
    
    <?php get_sidebar(); ?>
    
    <div id="content">
    <div id="main">
    
    <h2 id="sectiontitle"><?php single_cat_title('Category: '); ?></h2>
    
    <?php if (have_posts()) : ?>
    
    	<?php while (have_posts()) : the_post(); ?>
    
    	<div class="post" id="post-<?php the_ID(); ?> </div>
    
    	<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    		<div class="entry">
    				<?php the_content(__('Read more &raquo;')); ?>
    		</div> <!-- end .entry -->
    
    		<div class="postmetadata">
    		 <?php if (get_the_tags()){?>
    		 		  	<p>Tags: <?php the_tags('') ?></p>
    		<?php } ?>
    			<p><img style="vertical-align:-5px;" alt="categories" src="<?php bloginfo('template_directory'); ?>/images/category.gif" height="16" width="16" /> <?php the_category(', ') ?> | <?php the_author_posts_link(); ?>  | <?php the_date(); ?> | <img style="vertical-align:-5px;" alt="comments" src="<?php bloginfo('template_directory'); ?>/images/comment.gif" height="16" width="16" /> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> <?php edit_post_link('Edit',' ',''); ?></p>
    
    		<?php comments_template(); ?>
    
    </div> <!-- end .postmetadata -->
    </div> <!-- end .post -->
    
    	<?php endwhile; ?>
    
    	<div id="navigation">
    			<div class="fleft"><?php next_posts_link('&laquo; Older') ?></div>
    					<div class="fright"> <?php previous_posts_link('Newer &raquo;') ?></div>
    </div> <!-- end .navigation -->
    
    	<?php else : ?>
    
    	<div class="post">
    	<div class="entry">
    		<h2>Not Found</h2>
    		<p>Sorry, you are looking for something that isn't here.</p>
    	</div>
    	</div>	
    
    	<?php endif; ?>
    
    </div>	<!-- end #main -->
    
    </div> <!-- end #content -->
    
    <?php get_footer(); ?>
    Thread Starter jbento

    (@jbento)

    Yes that worked, BUT can you tell me exactly what you did to fix this?

    I am just curious so I would know in the future

    1. the sidebar was called at the end instead of the beginning – i suppose that was the biggest change;
    2. deleted a superfluous ‘div id=2content-inner”;
    3. moved a closing ‘/div’ from before ‘comments-temple’ to after it;
    4. closed the ‘div id=”navigation” properly;
    5. closed ‘#main’ where there was only the comment ‘eof #main’;
    6. before calling the footer, closed the ‘#content’ div.

    in general just made sure that all divs were closed in the right order.

    Thread Starter jbento

    (@jbento)

    Thanks so much for that explanation!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Footer is Different’ is closed to new replies.