Hi, I'm working on a site that's been hacked to death.
Normally I would use itemid from a mobile menu to make mobile-conditional elements on a page, but that's not working.
Is there a php if statement I can use that senses access via a mobile device?
Something like
I'm guessing there's probably not anything universal since there are so many browsers, but I thought I'd check...
Normally I would use itemid from a mobile menu to make mobile-conditional elements on a page, but that's not working.
Is there a php if statement I can use that senses access via a mobile device?
Something like
<?php if (mobile device):?>
do this thing
<?else:?>
do this other thing
<?php endif;?>
I'm guessing there's probably not anything universal since there are so many browsers, but I thought I'd check...