Functions code works only on tablet not on phone to me
-
Hi everibody i have a problem.
I’ve installed the plugin but it doesn’t works really fine to me.
If it will works at all i’ll install on a web site that i manage. Now i’m tring it on my experimental web site that you can visit on thi slink:
https://stefanoprovaweb.altervista.org/pagina-1/The problem is that it works fine if i use the shortcode like this:
[phone]Put content here that you only want displayed on Phones NOT Tablets or Desktops[/phone]
or
[device]Put content here that you only want displayed on Phones OR Tablets NOT Desktops[/device]
But i need to use the function but it works only on the tablet not on the phones.
<?php if (function_exists(‘wpmd_is_device’) && wpmd_is_device()) :?>
This will show if there is a telefono
<video position=fixed width=100% preload poster=”https://stefanoprovaweb.altervista.org/wp-content/uploads/2015/12/banner-ford-2.jpg”>
<?php else : ?>
This will show if it is anything but a phone
<?php endif; ?>Anybody knows something about it?
- The topic ‘Functions code works only on tablet not on phone to me’ is closed to new replies.