WordPress.org

Ready to get started?Download WordPress

Forums

footer floating too high (5 posts)

  1. georgelward
    Member
    Posted 5 years ago #

    How can I get the footer to be at the bottom, in the green, instead of floating up like it is here:

    http://thecoachapproach.net.previewdns.com/

    Thanks in advance for any help!
    George

  2. La M
    Member
    Posted 5 years ago #

    You seem to have a bottom padding of 500px on the #main div making it longer than it needs to be. The footer is sitting underneith your content. If you want to keep the white space at the bottom and force the footer down, you'll either have to add a top margin to it or else place it outside of main.

  3. georgelward
    Member
    Posted 5 years ago #

    "or else place it outside of main."
    What file and code would I modify??

    Thanks so much

  4. La M
    Member
    Posted 5 years ago #

    in your page template you could move your footer outside of <div id="main">

  5. georgelward
    Member
    Posted 5 years ago #

    Hey lady_moocher,
    Thanks so much for responding.
    The footer seems to be outside of the main, but I am not much of a code warrior.
    Here is the page template (page.php) code; Where would I move the call for the footer??:

    <?php get_header();?>

    <div id="main">

    <?php get_sidebar();?>

    <div id="content">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class="post" id="post-<?php the_ID(); ?>">

    <h1>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h1>

    <div class="entry">

    <?php the_content('Read the rest of this entry »'); ?>

    <?php comments_template(); // Get wp-comments.php template ?>

    </div>

    <?php endwhile; ?>

    <div class="navigation">

    <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>

    <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></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>

    </div>

    <?php get_footer ();?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags