Skip to content

Instantly share code, notes, and snippets.

@yvesvanbroekhoven
Last active December 17, 2015 00:59
Show Gist options
  • Save yvesvanbroekhoven/5524860 to your computer and use it in GitHub Desktop.
Save yvesvanbroekhoven/5524860 to your computer and use it in GitHub Desktop.
wp_is_mobile() usecase
<?php if ( wp_is_mobile() ) : ?>
<!-- HTML for mobile -->
<?php else : ?>
<!-- HTML for not mobile() -->
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment