elegant themes

Hack: How to use Jetpack’s ShareDaddy plugin without connecting to WordPress.com

| January 30, 2013 | 10 Comments

ShareDaddy was a great social sharing plugin. And then it was integrated into Auttomatic’s Jetpack which required connecting our clients’ sites to a WordPress.com account which was majorly awkward… since our clients don’t have a WordPress.com account (you can read more about our feelings on Jetpack here). So, we went off to find a substitute and after reading all the “Top 1 Million Sharing Plugins” posts we still felt at a loss for a normal, nice-looking, easy-to-use social sharing plugin.

And then Maor discovered that there was a way to hack Jetpack to use ShareDaddy without connecting it to a WordPress.com account.

Here’s how:

  1. Donwload Jetpack but don’t activate it. You won’t need to activate Jetpack because it will be run from the mu-plugin you’re about to create in step#2.
  2. Create a file called jetpack-sharedaddy.php and put it in the mu-plugins directory or create a mu-plugins folder if it doesn’t already exist. More info on creating mu-plugins can be found in the WordPress Codex.
    muplugins
  3. Add the following code into jetpack-sharedaddy.php (The original code is here). We also added in code to remove the massive Jetpack banner message that tells you to connect with WordPress.com even though the Jetpack plugin is deactivated.
    Looks small here... but you know it's massive in the Dashboard!

    Looks small here… but you know it’s massive in the Dashboard!

     

     

  4. Back in the Dashboard, you can go to Settings > Sharing and use ShareDaddy!

Here is a screenshot of the final sharing icons using the Icon+Text setting which shows the number of shares, tweets, etc in a really pretty, nicely spaced format, as opposed to awkwardly spaced out and massive in-your-face buttons that I usually see around the web!

sharedaddywpg

 

PS: One more small, but useful tip: Since Jetpack is deactivated, someone might think, “Hey, we’re not using this plugin, let’s remove it.” Since that would be quite the catastrophe, we’re using a plugin called Plugin Notes to write a note on the plugin page that says “DO NOT REMOVE”. Here’s a screenshot:

donotremove

 

Tags: , ,

Category: Plugins

About Rebecca Markowitz: Rebecca Markowitz has built over 50 WordPress sites for clients as Web Project Manager and WordPress specialist at illuminea. illuminea is a Jerusalem-based boutique web agency. WPGarage shows my dedicated relationship with WordPress over the years - full of love, laughs, tears, growth and strong drinks. L'chaim! View author profile.


Comments (10)

Trackback URL | Comments RSS Feed

  1. WPMineworks says:

    Hi Rebecca,

    did all of the above you have said, didn’t work. (using wp3.5 and jp2.1.1) any workarounds?

    • Maor Chasen says:

      Hi there! Thanks for your comment!

      We’ve updated the snippet, now it’s a bit more streamlined. So make sure to test it.

      • WPMineworks says:

        Hi Maor,

        still doesn’t work. check out this error:

        Warning: Cannot modify header information – headers already sent by (output started at /home/example/public_html/wp-content/mu-plugins/jetpack-sharedaddy.php:1) in /home/example/public_html/wp-includes/pluggable.php on line 876

      • Maor Chasen says:

        This is quite strange. I’ve tested this code both locally and on a remote staging server, and both seem to run this code properly. Can you try turning of all plugins on your installation?

        There is something about this line that bothers me:
        /home/example/public_html/wp-includes/pluggable.php on line 876

  2. WPMineworks says:

    Hi Maor,

    Yes now somehow it worked. I’ve not activated the plugin and now I can still see sharing icons below the post/article.

    Thanks Maor.

    Regards.

  3. Got this working on one of my other blog sites, thanks for the guide guys.

  4. Todd Edelman says:

    Works great! Thanks for sharing this with the WP community.

  5. Jaki Levy says:

    Amen! Nice work! Jetpack is indeed bloated. But I definitely appreciate some of the other features like Photon, the Carousel, and other gallery options (tiled galleries). If my client doesn’t have a WordPress.com, I’ll go ahead and just connect my own WP.com account. Thanks again for showing an alternative :-)

  6. Zlatev says:

    What about Development Mode?

    add_filter( 'jetpack_development_mode', '__return_true' );

    It basically allows activating any Jetpack modules that don’t require connection.

    So far I could think of any reason why not use it in production too. Did you?

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.

More in Plugins (9 of 115 articles)