I am looking for a script or plugin that disable loading thumb in mobile browser but load thumb on desktop browser.

Clearly, in a wordpress website, if I visit a website in desktop browser then website homepage post will load thumb and if I visit this site in mobile browser then website homepage post will not load thumb.

How can I stop loading thumb in mobile? Thanks in advanced. Sorry for bad English.

closed as off-topic by Mark Kaplun, birgire, TheDeadMedic, Howdy_McGee, EAMann Dec 31 '15 at 19:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  /* if its not mobile */
  if ( !wp_is_mobile() ) {
  /* load and show the post thumbnail */

You can read on wp_is_mobile here and on the the_post_thumbnail here

  • wp_is_mobie is a bad thing to use as you should not detect device type on server side, just on client side. It might specifically break caching depending on how the caching is done. – Mark Kaplun Dec 27 '15 at 10:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.