After moving site body ID is messing.
Permalink
Hi, after i moved my site from one server to another my body ID is messing.
Enyone ever tried this error? It's seems like no matter what i put in my body tag id / class when is render it just get removed.
My develop url :
http://projekter.resonate.dk/ubiquitech/...
live url:
http://u12zvka.nixweb06.dandomain.dk/...
Enyone ever tried this error? It's seems like no matter what i put in my body tag id / class when is render it just get removed.
My develop url :
http://projekter.resonate.dk/ubiquitech/...
live url:
http://u12zvka.nixweb06.dandomain.dk/...
Have you tries clearing your cache?
Jep, does not work :(
Do you have a live URL to look at?
Yes.
My develop url :
http://projekter.resonate.dk/ubiquitech/...
live url:
http://u12zvka.nixweb06.dandomain.dk/...
If you look at the soure you can se the <body id="swosh"> is messing on the live url.
I have just made a temporary fix for it becuse the client is making the content.
My develop url :
http://projekter.resonate.dk/ubiquitech/...
live url:
http://u12zvka.nixweb06.dandomain.dk/...
If you look at the soure you can se the <body id="swosh"> is messing on the live url.
I have just made a temporary fix for it becuse the client is making the content.
<script> $(function() { $("body").attr("id","swosh"); }); </script>
Well try to put that script in footer, not in header. And check it again.
Hope it solve this.
Hope it solve this.
The script works fine, but i will rather not have the script and just have the id on the body tage in the header..
It's just weird that it's get removed on one server and not on the other...
It's just weird that it's get removed on one server and not on the other...
Maybe this is not linked with this issue, but while looking into source code, I can see below:
So there is additional </a>
Rony
<a href="/index.php/en/home/"><img border="0" class="ccm-image-block" alt="" src="/files/1513/9237/9647/ubiquitech.png" width="200" height="60" /></a> </a>
So there is additional </a>
Rony
Is there not some who know about this problem?
How is the swosh id supposed to be generated? Is it hardcoded, added by script, dynamic dependant on page, etc?
Currently, when I view source on the live site, I see the opening body tag appearing twice, both times with the swosh id - that will need sorting out.
Currently, when I view source on the live site, I see the opening body tag appearing twice, both times with the swosh id - that will need sorting out.
I actually see it like this:
But the question is valid ... where are you putting the ID?
I would usually hardcode it into the template. Sometimes, I put in this snippet into the template (mostly in header.php) to give each page a unique ID (using the page name) and a class (using the page type):
<body> <body id="swosh">
But the question is valid ... where are you putting the ID?
I would usually hardcode it into the template. Sometimes, I put in this snippet into the template (mostly in header.php) to give each page a unique ID (using the page name) and a class (using the page type):
I hardcode it in to the header.php
It's so weird ..
Both body looks like this in the header.php
The first body the ID is in some how removed..
And then they look like this in view source
I've tried different things and had to see what would happen if there was another one.. I know it's very wrong
It's so weird ..
Both body looks like this in the header.php
<body id="swosh"> <body id="swosh">
The first body the ID is in some how removed..
And then they look like this in view source
<body > <body id="swosh">
I've tried different things and had to see what would happen if there was another one.. I know it's very wrong
There are some other markup errors that I would try cleaning up...
In source code you have things like this:
ie - with 2 closing quotation marks. This is happening in several places. I would sort this out first, see if that helps.
In source code you have things like this:
<span class="fa-stack fa-lg"">
ie - with 2 closing quotation marks. This is happening in several places. I would sort this out first, see if that helps.
So you are hard-coding 2 < body > tags both with the same ID? Why?
I think you are leaving a lot to chance because the browser is going to try to fix this broken markup.
I think you are leaving a lot to chance because the browser is going to try to fix this broken markup.
Yes, it was only to see if the second one got removed as well..
Please attach your header.php file to take a look
Maybe also footer.php and default.php
Maybe also footer.php and default.php
Hmm can't attach the files, get this.
an invalid extension. ( tryed .php .html .rar)
an invalid extension. ( tryed .php .html .rar)
change the file extensions to .txt
Of course .. It just not my day to day .. Thanks for helping out :)
Here is the files.
The wired thing is, it works on my develop server whit out the script.
http://projekter.resonate.dk/ubiquitech/...
Here is the files.
The wired thing is, it works on my develop server whit out the script.
http://projekter.resonate.dk/ubiquitech/...
Looks like you've fixed this now? What was it?
Doesn't look fixed to me...
Unfortunately not, just use this until I find a solution ..
I do not understand it, have never experienced this problem before
<script> $(function() { $("body").attr("id","swosh"); }); </script>
I do not understand it, have never experienced this problem before
Ah ok - I can only see one
when I view source, so i figured you may have fixed it...
Have you tried disabling your scripts one by one to check whether any of them are removing the id attribute?
Also - it looks like the markup errors i mentioned previously are still happening. It's always worth tidying up markup errors as a first port of call because they can cause weird things to happen elsewhere, apart from obviously not validating.
<body id="swosh">
when I view source, so i figured you may have fixed it...
Have you tried disabling your scripts one by one to check whether any of them are removing the id attribute?
Also - it looks like the markup errors i mentioned previously are still happening. It's always worth tidying up markup errors as a first port of call because they can cause weird things to happen elsewhere, apart from obviously not validating.
It teases like crazy .. I've have correct the things you wrote.
I also just copy and paste the entire source code into an HTML document to see if there was anything. And then I get this error
I have attached a picture
I also just copy and paste the entire source code into an HTML document to see if there was anything. And then I get this error
HTMLHint Errors: Special characters must be escaped : [ < ]. <body>
I have attached a picture
What text editor are you using to edit the php files? Perhaps your editor has injected an odd character. You might just have to re-type the body tag (but I suspect you have done that many times in the course of your experimentation.)
Adobe Edge code
I've tried several different programs and rewritten the tag countless times..
:(
I've tried several different programs and rewritten the tag countless times..
:(
Have you tried removing all the white space between the < /head > and the < body > tags so it looks like this:
< /head>< body >
< /head>< body >