- Code: Select all
<script type="text/javascript">
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
window.location = 'http://m.onlineordersnow.com/partytimepizza/' ;
}
</script>
I get this error when I add the code:
Parse error: syntax error, unexpected '<' in /home/party/public_html/templates/gk_storebox/layouts/blocks/head.php on line 2
I am adding the code the file located at: /templates/gk_storebox/layouts/blocks/head.php
Could you tell me what I'm doing wrong? Your help is much appreciated.
Website: http://www.partytimepizza.com