Is is possible to add an author photo (gravatar), while developing our WordPress site offline in a /localhost environment? I see that the gravator process is requesting for an online site to be associated to, but my site is still in a development stage offline.

Thanks for any tips


You cannot make gravatars work offline (they completely rely on remote service), but you can get rid of erorrs and slowdown when offline by overriding them. You can use get_avatar filter for it.

There is an Airplane Mode plugin for offline WP dev that does this (among other things). You can use that or just check out its implementation.

  • Thanks for the clarity on the topic and I will check out the resource as well. – klewis Oct 27 '16 at 20:00
  • I just checked out the plugin. This was such a clever idea. Thanks again for bringing it up! – klewis Oct 29 '16 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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