Facebook Like Button ndi WordPress Integration

ngati

Ndi Facebook Monga batani kukhazikitsa, ndimaganiza kuti ndikhala kanthawi usikuuno ndikuphatikizira mu blog yanga ya WordPress. Ndidaphatikizanso pa a Kuphatikiza blog ya kasitomala, nayenso, usikuuno.

Gawo loyamba ndilosavuta - ingowonjezerani nambala ya iframe kumasamba anu a template (index ndi single). Popeza tsamba lanu lamakalata limatha kukhala ndi zolemba zingapo, ndikofunikira kusintha batani mkati mwazomwe mungasungire tsamba lanu kuti ulumikizidwe wokhazikika ugwirizane bwino.

<iframe src="http://www.facebook.com/plugins/like.php?href=
& layout = button_count & action = like "scrolling =" no "frameborder =" 0 "allowTransparency =" zowona "style =" border: none; kusefukira: zobisika; m'lifupi: 250px; kutalika: px ">

Ndinasinthanso m'lifupi kenako ndinapanga CSS kuti ndiyandamitse batani pafupi ndi Twitter Retweet batani. Zomwe zida izi ndizabwino kwambiri ndikuti sizikufuna kulowa kulikonse, kuyenda, ndi zina. Mukungodina batani ndipo mwayika pa Facebook (kapena pa Twitter motsatira).

Kuphatikiza apo, mutha kuyikanso meta mumutu wa blog yanu kuti Facebook ichotse. Umu ndi m'mene ndasinthira zanga:

"/>

Pambuyo pake, ndikuyembekeza kuwona winawake alemba pulogalamu yabwino kuti achite izi. Sindinayesere kuti ndione njira yabwino - njira ya iframe kapena the Facebook JavaScript SDK njira. Ngati mwapeza pulogalamu yabwino kunja uko kuti musamalire izi, ndidziwitseni!

13 Comments

  1. 1

    Ndili ndi funso kwa inu, Bromance:

    Mausiku awiri apitawa ndimayesera kusewera ndi facebook yanga ngati bokosi (kale facebook fan widget) yanga "momwe ndingasindikizire buku lachisangalalo. mwachiyembekezo ”tsamba lokonda ndipo tsopano silidzakweza. Imachita zomwe ikuchita pa Mashable pompano… kapena INALI ikuchita koyambirira kwa Loweruka masana.

    Kodi zikutsutsana ndi Thesis? GRRRR

  2. 2
  3. 3
  4. 4

    Zikomo Jack! Sindikudziwa zomwe ndidachita, koma sindinawone batani likuwonekera pomwe ndimagwiritsa ntchito pulogalamu yowonjezera.

  5. 5

    Sitiyenera kukhala ndi mikangano konse - koma zimatha kutenga kulumikizana kwakukulu ndi CSS kuti mupeze batani pomwe mukufuna. Zinandivuta kwambiri.

  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.