Skip to content

Instantly share code, notes, and snippets.

@chekle
Created September 4, 2023 22:31
Show Gist options
  • Save chekle/6361baabd20d4e822998f905fd6957c4 to your computer and use it in GitHub Desktop.
Save chekle/6361baabd20d4e822998f905fd6957c4 to your computer and use it in GitHub Desktop.
wp_is_mobile
<?php if ( wp_is_mobile() ) : ?>
/* Display and echo mobile specific stuff here */
<?php else : ?>
/* Display and echo desktop stuff here */
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment