GetSimple Support Forum

Full Version: functions.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After adding this file to template all content of site moves down. If I look at source of page in IE there is some strange symbol at the top of the page, right before <!DOCTYPE html PUBLIC...
Am i doing something wrong? Here you can see it http://divorcelawyers.ru/
Thanks
Your code looks fine as does your HTML.

Looks like one of your Javascripts is messing up the Header of your page.

Look at it with Firebug or CTRL-I in Chrome.

Header/Body are all messed up.

Delete the Javascripts and add them in one by one to see if one of them is causing it.

Mike.
Easiest way would be to add to body element css a negative top margin.

But! It would be against good practices.
Because: why the hell didn't you put those
Code:
<link rel="canonical" href="http://divorcelawyers.ru/">
<link rel="stylesheet" type="text/css" href="20jure_pliki/default.css">
in <head> section ?

edit: Mike's faster :<

AND ! save functions.php as UTF8 document without bom. That is the cause of your main problem.
yojoe Wrote:]

AND ! save functions.php as UTF8 document without bom. That is the cause of your main problem.

Yes it works! Thank you all very very much ))
I had a similar problem last week, spent ages chasing round trying to work out why the <link...> headers were being moved to the body and eventually spotted the BOM in one of the files...