I recently added an SMS share button to a high traffic site we built over at my main gig, BizBudding, Inc. We were already using the slim, but awesome, EA Share Count plugin from Jared Atchison and Bill Erickson so adding a new service was as easy as 2 simple filters. The first filter registers a new service called ‘sms’, while the 2nd filter adds the data (label, link, etc). After a little help testing via the amazing Genesis Slack group, we had it working on iOS and Android.
The main code can be altered and used with any share plugin that allows adding new services. The next one I would care to use this on is Robin Cornett’s awesome Scriptless Social Sharing buttons.
Here is the working code:
You can see it live (on mobile devices) on The Spun.
Peter Armenti says
Any idea how you might add the posts featured image to it as well? I’ve seen sites like huff post be able to pull it off.
JiveDig says
Probably possible. You’ll have to add the featured image (maybe with get_the_post_thumbnail_url() ) to the $body variable. Let me know if you give it a try!