July 3, 201016 yr Before I go completely nuts please can someone help me. I have a validation issue. Something to do with the script tags. Any help much appreciated. My site I should probably have pointed out at it's the PIWIK stuff that's causing the problem, but I have it on my other sites with no issues.
July 3, 201016 yr Author you don't have a <script> start for the code in the HTML file ie. before line 13. It should have...I've been playing around with it and forgot to upload the proper version. If you look now there are 4 errors to do with both scripts at the top and bottom of the page.
July 3, 201016 yr In line 12 you need to define type e.g type="text/javascript" Piwik part - It's because you have the piwik script in between the </body> and </html> tags, which isn't allowed
July 3, 201016 yr Author Ok smashing - all fixed - many thanks! Can someone explain to me why I need to define the script type twice? I've played with these script tags a few times and they don't work any other way....but I don't get why you need type="text/javascript" twice?
July 3, 201016 yr well, line 12 needs the type="text/javascript" on it should the piwik code be before </body> ?
July 3, 201016 yr Ok smashing - all fixed - many thanks! Can someone explain to me why I need to define the script type twice? I've played with these script tags a few times and they don't work any other way....but I don't get why you need type="text/javascript" twice? because one is the defintion for the external file you are loading and the other is for the code you are inserting after.
July 3, 201016 yr Author because one is the defintion for the external file you are loading and the other is for the code you are inserting after. Ah gotcha! Thank you.
Create an account or sign in to comment