Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
functions.php
#1
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
Reply
#2
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.
My Github Repos: Github
Website: DigiMute
Reply
#3
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.
Addons: blue business theme, Online Visitors, Notepad
Reply
#4
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 ))
Reply
#5
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...
Reply




Users browsing this thread: 1 Guest(s)