WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] div rendering twice (5 posts)

  1. martinholm
    Member
    Posted 1 year ago #

    Hi

    I am doing a little project for a friend http://blivmand.dk/, and it is the first time I have tried WordPress..

    I am going for a simple solution with a header, containing a vimeo embedded movie, menu and social links. I have found a way to hardcode it into the twentyeleven theme. Not sure this is the best way, but hey it works :)

    I am now having an issue, of a div is showing up twice. The div id="Head" is showing up once more in the content section. this only happens in the suppages, ex: http://blivmand.dk/?page_id=2.. I can't seem to figure out what goes wrong here?

    I have googled and googled with out any result.

    So im hoping very much someone in the community can help me out with this?

    Regards / Martin

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    what is the code of page.php and content-page.php of your theme?

    please use the http://pastebin.com/ - see http://codex.wordpress.org/Forum_Welcome#Posting_Code

  3. martinholm
    Member
    Posted 1 year ago #

    Hi Alchymyth

    Thanks for taking the time to reply on my post

    the links are as following:
    content-page.php:
    http://pastebin.com/7rdqTwZ5

    page.php:
    http://pastebin.com/mrHPj598

  4. alchymyth
    Forum Moderator
    Posted 1 year ago #

    it might be that this line should not be in content-page.php:

    <div id="Head"></div>

    try to remove it ...

  5. martinholm
    Member
    Posted 1 year ago #

    Hi again..

    Worked like a charm :)

    Thank you very much, for helping me out.. This was really killing me :)

Topic Closed

This topic has been closed to new replies.

About this Topic