-
-
Save billerickson/abea14bbf21da5df5b76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Body Classes | |
* | |
*/ | |
function be_body_classes( $classes ) { | |
$classes[] = 'no-touch'; | |
return $classes; | |
} | |
add_filter( 'body_class', 'be_body_classes' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($){ | |
// Touch Device Detection | |
var isTouchDevice = 'ontouchstart' in document.documentElement; | |
if( isTouchDevice ) { | |
$('body').removeClass('no-touch'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So in this instance, are you then just killing any hover states via css to do the work around? Just curious how you would approach the hover issue on iOS... I suppose you could also always do something like
$('#element').tap()....