Custom Social Media Share Buttons for WordPress

This code gives you a little more control on how a post is shared with different social media services. This covers Facebook, Twitter and Pintrest. Gives a large featured image for Facebook and Title and Description and returns back to your page, short url for Twitter and Title for Twitter, and Large image for Pintrest with Post Title and a little extra description for you to customize. (image sprite not included. relies on css for social media icons.)

You will also need to go get your own Facebook App Id and replace the “you_need_your_own_app_id” (on line 24)



Leave a Reply

Your email address will not be published. Required fields are marked *

3 + 3 =