Β· 1 min read
Social Links
Letβs do away with large script includes for share buttons. URL share intents are much better:
Twitter docs for Web Intents.
Pinterest documentation for share widgets.
https://pinterest.com/pin/create/bookmarklet/?media=[post-img]&url=[post-url]&is_video=[is_video]&description=[post-title]
Buffer
https://bufferapp.com/add?text=[post-title]&url=[post-url]
Tumblr
https://www.tumblr.com/share/link?url=[post-url]&name=[post-title]&description=[post-desc]
Share to Pocket via a link.
https://getpocket.com/save?url=[post-url]&title=[post-title]
https://www.facebook.com/sharer.php?u=[post-url]
https://reddit.com/submit?url=[post-url]&title=[post-title]
https://www.linkedin.com/shareArticle?url=<URL>&title=<TITLE>&summary=<SUMMARY>&source=<SOURCE_URL>
Using with WordPress
Inside the current page/post loop you can use a combination of WordPress functions the_permalink()
for the permalink, the_title()
for the title, and the_excerpt()
and create social share links. For example a LinkedIn share:
Simple SVG Social icons
Using svg
icons from Simple Icons.