I'm trying to add social media sharing buttons to my blog. I've been able add some. But I have problem with the following.
I want buttons to appear on the main page on the blog. And if someone, let's say make a tweet. the URL in the tweet is the specific post, not the main page of the blog.
I am supposed add
Code: Select all
[#post-url]
Code: Select all
[#post-title]
This code just leads to the main blog
Code: Select all
<a>Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>