jquery - Twitter button counting for only one page instead of website -


i want use twitter count button website.

here code using...

<a href="https://twitter.com/share" class="twitter-share-button" data-size="large">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> 

but problem button counting single page means if click on www.abc.com make counter 1 when go on www.abc.com/xyz @ page 0. how make same whole website.

also button counter coming after button whilei want use counter box above button how style it, not find option on development site.

this because have inserted button code manually on every page.

to sync of pages.

  1. make new .html file , add twitter button code in it.
  2. php include twitter button .html in of pages this.

    <?php              include ('twitterbutton.html') 

    ;>

add php code in div want button in. counts sync in of pages.


Comments