Conditional issue for iPad
-
I’m having issues with the iPad not behaving properly.
On this page:
https://entreedestinations.dreamhosters.com/trip/ultimate-rockies-by-rail/
halfway down the page, I have a series of images, Days 1-2, Days 4-5…
These are clickable and open a fancy box.I don’t want this fancybox to open up on tablets or mobile, so in the code, I added:
<?php if( !is_handheld() ){ ?> <a href="<?php echo $image_url; ?>"> <?php } ?>
I also tried
( !is_mobile() || !is_tablet() )
and the conditional is on the closing</a>
of course.For some reason, the phone works, but I can’t get the iPad to work.
The weirdest thing is that when I put
<?php if(is_handheld()) { echo "non desktop";} ?>
near the top of the slideshow, that statement appears… so it should work, no?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Conditional issue for iPad’ is closed to new replies.