WordPress.org

Support

Support » Themes and Templates » get_header and get_footer break design with weird characters

get_header and get_footer break design with weird characters

  • Hello there.

    I’m creating my own theme here, and I have a very weird problem.
    Any time I use “get_header()” or “get_footer()” function, there is a weird spaces appearing in my design. I tried to find what’s causing this… and I kinda found it.

    In the source file from Explorer, it gives me a small rectangle character before the code that is included. In Firefox source file, it’s a very very small dot that’s there.

    In the case of the get_header, the character appears before the doctype, causing the design to break in IE.

    I asked a programmer at my job, he told me it could be some weird thing coming from the file delimiters. So I tried to include the entire code from header.php into index.php, and the problem was solved.

    So i could go without using header.php, but that would be kinda dumb… i’d really like to use get_header(). Anyone knows what the problem is?

    Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘get_header and get_footer break design with weird characters’ is closed to new replies.