• Resolved cosmocanuck

    (@cosmocanuck)


    Hi! I just upgraded my old WP to 2.5.1. – and now, I’m getting a duplicate header at the bottom of every page of my site.

    After the </body>, the HTML seems to just start over again, and then cut off somewhere just after the header.

    I’m baffled – it’s nothing that’s in my theme pages, that’s for sure!

    Has anyone else run into anything like this?

    Thanks,
    adam

Viewing 8 replies - 1 through 8 (of 8 total)
  • Are you sure that all you did was upgrade? You didn’t edit any of your WordPress files?

    Delete <?php get_header(); ?> in your theme’s footer.php, if there’s one.

    Thread Starter cosmocanuck

    (@cosmocanuck)

    Thanks guys. t3ch33, I definitely did not edit any WP files – just copied over my theme.

    And haochi, there is no duplicate “get_header” in my footer.

    I’ll try just re-copying my theme files over. Maybe there was some kind of glitch I just can’t see…

    Thread Starter cosmocanuck

    (@cosmocanuck)

    OK, that didn’t work. I see that if I even remove EVERYTHING from my header or my footer… the duplicate header still appears!

    WHERE is this coming from? I’m baffled and getting anxious…

    FYI, the link is: http://www.adamabrams.com

    Thanks!
    adam

    Thread Starter cosmocanuck

    (@cosmocanuck)

    It seems to be trying to include the header at the bottom, no matter what – if I actually rename “header.php” to something else, it inserts the blog title and tagline down there. Strange…

    Well, the html says the extra header at the bottom is wrapped with the div “sizer”. You might want to check footer.php file cause it’s in every page.

    Thread Starter cosmocanuck

    (@cosmocanuck)

    Hey, I solved it! For some reason, on my “index.php” page in the root of the site, after the expected code:

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wordpress/wp-blog-header.php’);
    ?>

    was the line:

    <?php get_header(); ?>

    …which of course was adding the header after every single page of the site!

    How it got there I’ll never know, but deleting it solved the problem.

    Thanks to everyone for their attempts to help!

    Adam

    Guess I was pretty close, just pointing to the wrong file.
    And you said, “I definitely did not edit any WP files ” … Clearly you did.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘HTML is repeating’ is closed to new replies.