Masukkin Gadget 'Follow Me On Twitter'

Wednesday, 1 May 2013

Ada yang nanya cara masang button follow me on twitter.

Gampang kok, tinggal ke Layout > Add a gadget > HTML/Javascript

Then, masukkin kode ini:


<style>
.twitter-follow-button {
  padding:2px;
}
</style>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<a class="twitter-follow-button" data-show-count="false" data-size="medium" href="https://twitter.com/usernamekamu">Follow @usernamekamu</a>


Itu doang. Ini bisa dimodifikasi loh,  coba liat baris `<a class=..`


data-show-count="false" bisa diganti dengan data-show-count="true", ntar keluar jumlah follower kamu.

data-size="medium" bisa diganti dengan data-size="large" untuk ukuran yang lebih besar.

That's all!


No comments:

Post a Comment

None

 

Hits

Stack Overflow

Google+ Followers

Blogroll

Blog adik seorang teman. Masih SMP tapi keren abis:

http://shofiifi.blogspot.com/?m=1

Blog Nanda, prepare for some cool contents
Days of Nan - http://nan2598.blogspot.com/

Writings of Niti, deep things are here.
Niti No Kakikomi - http://samazamanakakikomi.blogspot.com/

Words that is just so enjoyable to read - Atikah's
http://chocolatika.wordpress.com