Tablets not recognised
-
Hi guys,
I am using code like this
if ( is_tablet() ) {the_post_thumbnail( 'blogbild' );} elseif ( is_mobile() ) {the_post_thumbnail( 'blogbildmobil' );} else {the_post_thumbnail( 'blogbild' );};and
if ( is_tablet() ) { wp_nav_menu( array('menu' => 'primary' ) ); } elseif ( is_mobile() ) { wp_nav_menu( array('menu' => 'mobile' ) ); } else { wp_nav_menu( array('menu' => 'primary' ) ); };to have two different menus and designs/image sizes shown for desktop/tablets and mobile (phones).
The problem is, it does not work. I tried with that iPad emulator http://www.alexw.me/ipad2 … but it always shows me the website as mobile version (you can realise that by the small post thumbnails in “Journal” and the missing navigation point “Portfolio” (for mobile on purpose)). If you want to check: ivanschneider com is the address.
So, is my little bit of code wrong or does the plugin not work with an iPad emular or does the plugin not work at all regarding the tablet detection?
Thank you in advance, guys.
The topic ‘Tablets not recognised’ is closed to new replies.