I am getting following error message :
Parse error: syntax error, unexpected '{' in /home/otcpaneluser/public_html/mytheme/header.php on line 1
My header.php have very simple lines of code. Those are:
<?php
if ( !wp_is_mobile() ) { // desktop header
echo 'I am the desktop header';
}
else {
echo 'I am the mobile header';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta name="google-site-verification" content="lePo6W0p7rXhyUR2Yd21QNuJey6t9b240pkJlPbZJe4" />
<head></head>
<body>....</body>
</html>
Why does this happen? How can I solve this??