Social Sharing Links

Please help. I’m desperate.

I’m trying to add social sharing links to my CMS collection pages. I created my own, however, I can’t seem to link each individual post by editing an individual post in Blog Collection Template. No matter which blog post I click on, the social sharing element will have the same link. Understandable.

So I decided to use AddThis, but I’m not sure if there’s a seamless integration for it. Adding the code in Custom Code in Settings doesn’t seem to work.

How to create social sharing links/elements that actually work with the CMS?

Here is my public share link: LINK
(how to access public share link)

Sorry brother. No better idea about CMS.

Curious if you ever found a solution to this? I’m in the same boat right now

Actually I found it did work with the Add This code. Thanks for sharing that resource!

The API for Facebook/twitter/linkedin and so on - change over time (Read the docs for each platform).


For linkedin for example this works perfectly (Change to your slug and absolute path):

<script src="//" type="text/javascript">lang: en_US</script>
<script type="IN/Share" data-url="{{cms slug her}}"></script>


Add some share icon (JPEG)

<a title="share on facebook" class="social-icon facebook"  href="javascript:fbshareCurrentPage()" target="_blank" alt="Share on Facebook">
<img height="21" src="https://some-facebook-icon.gif" alt="share on facebook button">

<script language="javascript">
    function fbshareCurrentPage()
    {""+escape(window.location.href)+"&t="+document.title, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false; }


<a title="Share on Twitter" href="" class="twitter-share-button" data-show-count="false">Tweet</a>

<script src="" charset="utf-8"></script>


You should add Open Graph (OG) data (Title/image and so on):

Hey @Siton_Systems

Do you know how to prevent my preloader gif from interfering with OG image?

When I share a CMS page, the first time it gets the preloader gif, then I close the window and share again and it gets the good OG.


Peace everyone! Thank you @Siton_Systems for the code snippets. I was looking for something to resolve the recent API update for LinkedIn, as it prevented my previously accessible share button from working properly.

After using the code you shared along with some trial & error, I was able to finesse it back into a custom share icon for LinkedIn. Here’s the code snippet I used:

<a onclick=", 'linkedin-share','width=580,height=640');return false"
href="{{wf {&quot;path&quot;:&quot;slug&quot;,&quot;type&quot;:&quot;PlainText&quot;\} }}
&" class="linkedin-share">

<div class="social-image">
<img src="
alt="linkedin-icon" class="center">

So if you were to customize it for yourself it would be more along the lines of:

<a onclick=", 'linkedin-share','width=580,height=640');return false"
&" class="linkedin-share">

<div class="social-image">
alt="linkedin-icon" class="center">

Hope that helps somebody!

All the Best,
Sean aka Mr. Wildenfree

1 Like