Skip to content

Integrating Sociable with Unsleepable

Ben Tray’s Unsleepable theme currently hard codes a number of social tagging sites directly in the sidebar. Since I had already been using the Sociable plugin I wanted to try and integrate the plugin directly within the Sidebar so that I could add/ remove other social tagging sites using the Sociable administration screen. To do this, all I had to do was:

  1. Disable all options within the Sociable Plugin administration screen
  2. Replace the following section of code in Sidebar:

[code lang=”php”]

Social Bookmarking

[/code]

with:

[code lang=”php”]

Social Bookmarking

< ?php print sociable_html(); ?>

[/code]