Support » Plugin: Recent Tweets » How to Add Profile Image to Tweets

  • Ryan Gatto


    One of our clients wanted to add his profile image next to each tweet so we had to manipulate the plugin a little.

    1) Make a local copy of twitter-blogger.js
    2) Updated the path to look for our local version of twitter-blogger.js in recent-tweets.php
    3) Added “var profile_image = twitters[i].user.profile_image_url;” to twitter-blogger.js
    4) and changed line 11 in twitter-blogger.js from:
    ¬† ¬†statusHTML.push(‘

  • <span>’+status+'</span>
  • ‘);



  • <img src=”‘+profile_image+'” height=”24″ width=”24″><span>’+status+'</span>
  • ‘);

    Once that is done you should get a thumbnail of the users profile photo next to each tweet.

  • The topic ‘How to Add Profile Image to Tweets’ is closed to new replies.