Hi,
Where can i add this script to show the twitter count of shares:
<script type="text/javascript" src="//newsharecounts.s3-us-west-2.amazonaws.com/nsc.js"></script><script type="text/javascript">window.newShareCountsAuto="smart";</script>
thx
Hi,
Where can i add this script to show the twitter count of shares:
<script type="text/javascript" src="//newsharecounts.s3-us-west-2.amazonaws.com/nsc.js"></script><script type="text/javascript">window.newShareCountsAuto="smart";</script>
thx
Hi Tarek,
You can add this code to functions.php file in your child theme directory like this:
add_action( 'wp_footer', 'add_footer_script', 999 );
function add_footer_script(){
?>
<script type="text/javascript" src="//newsharecounts.s3-us-west-2.amazonaws.com/nsc.js"></script>
<script type="text/javascript">window.newShareCountsAuto="smart";</script>
<?php
}
I suggest following these guides to get this code working successfully:
http://newsharecounts.com/twitter-share-counts-on-standard-tweet-buttons/
http://newsharecounts.com/twitter-share-counts-in-cresta-social-share-wordpress-plugin/
Thanks.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.