It’s strange on my local ubuntu apache server, in development this does not show, when I upload to the centos apache server, admin via plesk I get this annoying dash ‘-‘ and a white space above the top image of the page. this is the view source you can see the – before head. Both twig templates are the same. wonder if the server is adding something. it’s weird and irritating and make the site look rubbish, sigh
- <head>
<meta charset="utf-8">
<title>Concert Flow - Find Live Music You'll Love</title>
<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="format-detection" content="telephone=no">
<!-- Style Sheet-->
<!-- favicon -->
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
<!-- Color Scheme -->
</head>
3
Answers
Finally found, it was nothing to do with the HTML template. The minus character had accidently been added to app.dev before the tag, if any stray characters are added in there they will appear on the page.
Please try adding your code not the page source. I think there should be some problem with your opening
<html>
tag.Upload all relevant files that output HTML.
Ensure you don’t have any third party software causing this sort of nonsense.
Output underscores in various parts of your code, upload those HTML output files and then that will give you a better idea of where the culprit is located.
In example if the output is “__-_” then you look after the second underscore. If there is still a lot of code being output between the second and third (in this example) then erase the first two and then output more underscores.
Make sure that the test underscore code is the exact same code so you can easily hunt them down and remove them.
You’re lucky this is happening on an early Sunday morning when traffic is traditionally much slower.
Also add a
doctype
, it’s not 1996 any more.