Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
158 views
in Plugins by
Is there any easy way to add a share button with each question on questions page and share that url of that question in fb, twitter, whatsapp ?

1 Answer

+1 vote
by
edited by

I was able to achieve that by adding below to theme file: 

$this->output('<div class="sharethis-inline-share-buttons" data-url="'.qa_opt('site_url').str_replace("./","",$q_item['url']).'" data-title="'.$q_item['title'].'"></div>');

Also setup buttons on sharethis.com and add below code to site header

<script type='text/javascript' src='https://platform-api.sharethis.com/js/sharethis.js#property=xxxxxxxxxx&product=inline-share-buttons' async='async'></script> 

 

...