• Resolved splwolf

    (@splwolf)


    I’m trying to get a footer to stick to the bottom of the page in the template I’m building. I’ve used this methodology before (ALA Article) with success, but it seems that the footer is only sitting below the sidebar, and not underneath the loop-generated post content. I tried taking away the CSS wizardry and letting the php do it on it’s own, but neither approach seems to be working well.

    I’m sure this problem is because I’m overlooking some small bit of code, but I can’t figure out what that is. My site:

    franciscancm.org

    Thanks for any help anybody can give me!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Root

    (@root)

    That would be the 5 extra div closers you added *just to be sure*.

    Thread Starter splwolf

    (@splwolf)

    Closing non-existent divs doesn’t deactivate others that are properly marked. For the sake of argument, I removed the extra closing tags. They weren’t the problem.

    Root

    (@root)

    You can not be serious?

    drmike

    (@drmike)

    You never closed your center tag right after your body tag.

    Validator

    Thread Starter splwolf

    (@splwolf)

    I’m not sure what you mean… I wasn’t kidding about what I said; I guess I could be wrong about extra </div> tags, but like I said, I removed the extra closing tags, and the problem is still there.

    I have a funny feeling that the problem is in the php–shouldn’t the <?php get_footer(); ?> markup put the footer below all content anyway?

    EDIT: thanks drmike. I removed the <center> tag, though, and it didn’t help (the content is now centered via margin-left:auto; margin-right:auto;).

    Thread Starter splwolf

    (@splwolf)

    Quite serious, Root. ?? To the best of my knowledge, extra </div> tags aren’t even parsed because the tag was never started with a <div>, therefore, there’s nothing to close, so nothing happens. Correct me if I’m wrong though.

    drmike: thanks, I removed that <center> tag (content is now centered with margin-left:auto; margin-right:auto;) unfortunately the problem persists… Thanks for the help though.

    I have a sneaking suspicion the problem is somewhere in the php actually. Shouldn’t <?php get_footer(); ?> automatically place the footer below the posts?

    Root

    (@root)

    Well you would end up closing any other divs that were open like #rap prematurely. A common cause of footage. ??

    Root

    (@root)

    It is better – just a shame you have a couple of one px jogs, one at the top and one in the footer. The CSS-P is just not settled somewhere.

    Thread Starter splwolf

    (@splwolf)

    I’ve been battling issue after issue with reformatting wordpress into my site for over a month now, but I finally got all the code to behave. I fixed the footer problem last week, but at this point I can’t remember the bit of offending CSS that ended up being the culprit.

    I looked into it, and you were right, Root; extra closing tags add whitespace. I don’t think that ended up being my problem here, but now I know. ??

    Root

    (@root)

    For other readers who may be new to this my take on positioning issues is this. You either need to get a rock solid theme to start with or do a lot of RTFM. ??

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