header.php and mobile detect
-
Hello,
it is about header.php
i am trying to show this two divs ( with rest ofcourse) on just computers ( not phone or tablets)
here is my code<div id="pozadinadesno" style="background:url('http://www.psc-osijek.hr/slike/manja.jpg');height:854px;width:277px;float:left;left : 50%; margin-left: -765px;margin-top : 152px; position:absolute "> </div> <div id="pozadinadesnije" style="background:url('http://www.psc-osijek.hr/slike/manja.jpg');height:854px;width:277px;float:left;left : 50%; margin-left: 488px;margin-top : 152px; position : absolute"> </div>when i change it
to`
<?php include ‘wp-mobile-detect/mobile-detect.php’;
if (function_exists(‘wpmd_is_phone’) && wpmd_is_phone()) {
}
else
{ <div id=”pozadinadesno” style=”background:url(‘http://www.psc-osijek.hr/slike/manja.jpg’);height:854px;width:277px;float:left;left : 50%; margin-left: -765px;margin-top : 152px; position:absolute “>
</div>
<div id=”pozadinadesnije” style=”background:url(‘http://www.psc-osijek.hr/slike/manja.jpg’);height:854px;width:277px;float:left;left : 50%; margin-left: 488px;margin-top : 152px; position : absolute”>
</div>
}
?>it shows arse error: syntax error, unexpected ‘<‘ ….
hmmm?
The topic ‘header.php and mobile detect’ is closed to new replies.