Salam semua, apa kabor? Sihat? Hari aku ade nak share tutorial skit pasal nak letak BUTTON "LIKE" dan juga cara-cara meletakkan comment facebook anda di blog. Tutorial nie aku jmp kt blog hitech-tip & arcx13, credit to both of them.
So step-step dia camnie la:
- Mula-mula backup dulu korangnyer blogger template. Takut tak jadi,leh install balik tapi insyallah jadi nyer.Klik "Download Full Template".
- Tick dekat butang "Expand Widget Templates". Pastu cari XML code:
- Kalau dah jumpa, paste je code kt bawah ni SELEPAS line tue:
<iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show-faces=true&width=530&height=60&action=like&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:530px; height:60px'/>
Result:
Changing the Like' button to 'Recommend'
Changing the Like' button to 'Recommend'
Kalo xmo like, leh tukar jadi recommend or watever yg korang nak la. Just tukar dekat action=like kepada action=(ape2 jer yg korang suka). Code kat bawah ni contoh untuk recommend.
<iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show-faces=true&width=530&height=60&action=recommend&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:530px; height:60px'/>
5. Lepas sudah, tekan la "SAVE".
0 comments:
Post a Comment