GetSimple Support Forum
functions.php - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: functions.php (/showthread.php?tid=1208)



functions.php - amiljaev - 2011-01-05

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


functions.php - n00dles101 - 2011-01-05

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.


functions.php - yojoe - 2011-01-05

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.


functions.php - amiljaev - 2011-01-05

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 ))


functions.php - Vulch - 2011-01-06

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...