Subscribe via

Adding More Sites Social Homes Widget Plugin

Social Homes Widget is a small but neat little plugin that lets you add links to your various social homepages in your sidebar. Of course you can do this manually, but it’s a lot nicer to be able to manage this in the widgets section in wp-admin instead of having to dive into your sidebar.php every time you want to modify the list.
The plugin supports 19 different social home links. This is more than enough for most people, but not me. Today I found that I needed to add my Plurk homepage to this list. So I found a quick hack to get this done fast, instead of submitting a request to the author. All I did was:
1. Added ‘Plurk’ to the global services list (variable $services near the top of the page).

$services = array('', 'Flickr', ... , 'Plurk');

2. Added the following to big switch statement in widget_socialhomes():

// Plurk
case 19:
$link = ''.htmlspecialchars($options[$i]['handle'], ENT_QUOTES);
$icon = '';

Now “Plurk” should appear as one of the options in the Social Homes drop down menus in wp-admin > Design > Widgets > Social Homes. Short and Sweet. Enjoy!

4 Responses to “Adding More Sites Social Homes Widget Plugin”

[go to last comment]
  1. Mlacolm Bastien

    Good idea for a plugin, I’ve always done this myself, but I’ll try this plugin out and see if it’s easier to do that same task. Thanks for the tip!

  2. Ty Bone

    @Malcolm Bastien
    Indeed it is a good idea. Too bad I didn’t develop it! 🙂 Hope it works out for you.

  3. Mo

    Great plug-in – can I buy you a soda? Thanks.

  4. Ty Bone

    Actually, I’m not the author of the plugin and I would hate to not give credit to where it’s due ( You can still buy me a coffee via the link above though if you found this website resourceful. Thanks!

[go to first comment]

Leave a Reply