I was elbow deep in a new website I am working on in WordPress and I wanted to add some social buttons for sharing not only posts, but pages, too.
That’s when I ran into a problem.
I wanted to lean on Jetpack’s social share buttons, since I was running it anyway. The problem with Jetpack, however, is that social share buttons are only allowed to reside inside the WordPress Loop. I would not be able to place them anywhere, else.
That wasn’t okay with me. I wasn’t about to sacrifice my design.
A few years ago I would have started digging around in the WordPress Plugin Repository to find an alternative until I found something that kind of worked or could fit my use. That was when I was scared of code.
Having dug into social network APIs before, I knew it would be easy to build out my own. This is probably the easiest place to start. Most social networks are well documented and keep their bits of code snippets easy and simple to use.
How would like to add a Facebook Like or Twitter follow button to your church or ministry website?
Trust me, it’s easy.
Here’s where you can find all your snippets:
Don’t let these intimidate you.
By following the included documentation and some copy and paste and you’ll be rockin’ your own social buttons! No WordPress plugins, just pure code, place exactly where you want it (some CSS required).
The Next Level
Don’t be scared. There’s always undo. 😉
Have you dug into any of the social network APIs before?