Forums

[resolved] WP Adds a Linebreak to my Theme (2 posts)

  1. geddes
    Member
    Posted 4 years ago #

    At least, that is what I think is going on...

    I found WordPress and Gengo to be a great solution for maintaining a multi-lingual site. I designed my theme, first in XHTML / CSS and you can see that here:

    http://new.idigdesign.cn/new2/
    http://new.idigdesign.cn/new2/content.html

    Then I took that code, and did nothing but plug in wordpress template tags, activate the theme, and the result is here:

    http://xinde.idigdesign.cn/

    The problem is in IE 6 and 7. The HTML I programmed looks fine in IE (after a lot of tweeking, I hate IE just as much as the next man) but then when I plugged in the wordpress tags and activated the theme, in IE and 7, there is a mysterious line break at the top of the page. This line break is pushing down my header logo and my navigation tabs. I know there is a linebreak because when I click-drag my mouse over the page, it selects the empty space at the very top.

    However, I cannot for the life of me figure out where that space is coming from that is pushing down the navigation elements! I have examined the wordpress generated code and compared it to my original code, and cannot find any difference that would cause this new behavior.

    Any advice?

    Thank you so much in advance,
    Geddes Munson

  2. geddes
    Member
    Posted 4 years ago #

    After hours and hours of trying different things, I finally realized what was wrong. My UTF-8 file that the template was in included the byte order mark. Oops, turns out IE misreads the byte order mark as a line break. The solution was to resave as utf w/o byte order mark.

Topic Closed

This topic has been closed to new replies.

About this Topic