WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Footer Problem (4 posts)

  1. William Speruzzi
    Member
    Posted 7 years ago #

    I'm using the Moonlight v1.0 theme and having issues with the way the footer is being placed. I want the footer to remain static at the bottom of the page ALWAYS. The problem is whenever I have a small # of posts or the length of the posts vary The footer crawls up to the bottom of the last post.

    This is my code:

    <div id="footer">[ RSS | Comments RSS | Atom | Technorati | <a
    href="http://digg.com/users/diggmoNYC/dugg">Digg | <a
    href="http://www.wordpress.org/">WordPress]<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->

    <!-- Start of StatCounter Code -->

    blah blah blah

    <!-- End of StatCounter Code -->
    <br>
    <?php wp_footer(); ?>
    <?php akismet_count(1); ?>
    </div>

    How can I correct this?

    Here's my blog.

    Thanks for any help.

  2. flashbuddy
    Member
    Posted 7 years ago #

    It is in the CSS. Find the class or id that controls the footer placement.

  3. Jeremy Clark
    Moderator
    Posted 7 years ago #

    Very simple just add this above your <div id="footer">
    <div style="clear:both;"></div>

    So your new footer code would look like this.

    <div style="clear:both;"></div>
    <div id="footer">[  RSS  |  Comments RSS |  Atom | Technorati | <a
    href="http://digg.com/users/diggmoNYC/dugg">Digg | <a
    href="http://www.wordpress.org/">WordPress]<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
  4. William Speruzzi
    Member
    Posted 7 years ago #

    Excellent Jeremy! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags