Cara nak pasang Facebook Button Like It di Blog dan Wordpress

Kali ni apek nak sembang sal HTML pulak. Apek ni talak la pandai sangat pasal edit-edit HTML ni tapi apek mau share dengan blogger blog tentang cara-cara nak pasang 'Facebook Like Button' kat blog atau wordpress lu olang. Lu olang tau tak apa itu 'Facebook Like Button'? ok...button tu kalo dekat Facebook fungsinya adalah untuk berkongsi content yang disukai dengan rakan-rakan lain di Facebook. Lu olang yang ada itu Facebook mesti tau kan. Untuk blog dan wordpress pulak funsgsi button ni adalah untuk berkongsi artikel-artikel menalik(menarik) dengan rakan-rakan di Facebook lu olang. Emm pahamkan?ok sikalang apek nk tunjuk cara-cara nak pasang button ni.......
Cara mau Pasang Button Facebook Like di Wordpress:
Copy code di bawah kemudian buka fail single.php dan cari the_content( ).Paste sama ada sebelum ataupun selepas the_content( ).
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px"></iframe>
Cara mau Pasang Button Facebook Like di Blogspot:
Copy code dibawah macam wordpress jugak.
- Lu olang masuk ke Dashboard > Layout> Edit HTML. (jangan lupa save template lu olang dulu sebagai backup,takut jugak ada benda yang tak diingini berlaku)
- Then tick pada butang 'Expand Widget Templates'.
- Cari code <data:post.body/> dengan menggunakan (Ctrl+F).
- Paste code dibawah (Facebook Like) selepas code <data:post.body/>
<iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show-faces=false&width=450&height=60&action=like&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:60px'/>
Setell!!
Apek halap lu olang berjaya buat macam apek jugak;) cledit untuk otai Anarm .






Syeah-syeah nee
May 17, 2010 10:42 AM
thanks share ilmu
May 17, 2010 12:16 PM
tankyu dali apek
May 17, 2010 1:21 PM
wahh..tq for sharing apex..
^___^
May 17, 2010 2:05 PM
naice..kalo utk wordpress skrg pon bleh guna plugin jek..
tp tak sangka rupanya code dia simple jek.ngeh2..
nice post apek.. :D
May 17, 2010 2:34 PM
klu tala ada itu fb pun mau gna juga ka ?
hehehe
May 17, 2010 2:53 PM
tenkiu apek..
May 17, 2010 3:58 PM
salam apek..
waa ada ilmu ni
me kasih kongsi..
May 17, 2010 4:23 PM
doakan berjaya.haha.
May 17, 2010 4:53 PM
coding2 ni mmg aku suka..
tp aku punya pd blog aku ad 4 matches..agk2 yg mna ea ?
May 17, 2010 6:52 PM
bantal bucuk...apek xbrpa fhm la...
tq all..
May 17, 2010 8:14 PM
Waaa, manyak bagus apek. keep it up! nnti amoi mahu tly. ngeeh3.. :B
May 17, 2010 9:23 PM
tly2 jgn x tly...;)
May 17, 2010 11:07 PM
xiexie apek...=)
May 18, 2010 9:24 AM
--->pada code HTML blog ku ada 4 matches..krenya ad 4 persamaan..tataw nk bubuh yang mna 1..>.<..
pnjang lebar code HTML..alih2,ada 4 persamaan dgn nih..--->
May 18, 2010 9:26 AM
apek xfhm la mdsud bntal bucuk??try dulu..yg pntg jgn lp backup
May 18, 2010 10:02 AM
amoi nak cuba ye apek!
harap menjadi dalam proses mengodeh blog. :P
May 18, 2010 10:24 AM
thanks Apek...
hehehe....
May 18, 2010 11:03 AM
lama dah cari code ni.ekekekek.
May 18, 2010 12:47 PM
sharing is caring..ehe..
May 18, 2010 2:10 PM
haishh..nape ellis x leh tglkan jejak kat shoutbox..neh...ni yg geram neh..
May 18, 2010 2:13 PM
tq..sesangat dah leh buat kat blog saya..
May 18, 2010 3:35 PM
wow. thanks ! dah lme cari.
May 18, 2010 4:57 PM
tq
May 18, 2010 6:32 PM
kalau orang like, die kua kat fb kite ke ape?
atau just like saje2?
May 30, 2010 10:31 AM
This is a good blog. Keep up all the work. I too love blogging and expressing my opinions
February 5, 2011 8:41 PM
Post a Comment