Blog wordpress pada umumnya sudah menyediakan plugin share to social media, tapi kena tidak membuat secara manual saja, untuk lebih ringan web blog kita. Saya coba memberikan code html Manual Share Blog ke Social Media Facebook, Twitter dan Digg, sehingga tombol share facebook, serta tombol share twitter mudah dibuat. Contohnya seperti gambar berikut:
Silahkan meletakkannya sesuai keinginan Anda pada file single.php pada themes wordpress yang Anda gunakan
1. Facebook
Untuk Code HTML share Facebook
<a href=”http://www.facebook.com/sharer.php?u=<?php the_permalink();?>” title=”<?php the_title();?>, share on Facebook” rel=”nofollow” target=”_blank”> Facebook </a>
2. Twitter
Untuk Code HTML Share Twitter
<a href=”http://twitter.com/home?status=<?php the_title();?> <?php the_permalink();?> via @kangpaidjo” rel=”nofollow” target=”_blank” title=”Share on Twitter”>Tweet</a>
3. Digg
Untuk Code HTML share Digg
<a href=”http://www.digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title() ?>” title=”Submit Post to Digg” rel=”nofollow” target=”_blank”> Digg </a>
Berikut saya berikan contoh code share yang saya gunakan
<p>
<strong>
Share Artikel: |<a href=”http://www.facebook.com/sharer.php?u=<?php the_permalink();?>” title=”<?php the_title();?>, share on Facebook” rel=”nofollow” target=”_blank”> Facebook </a>|
<a href=”http://twitter.com/home?status=<?php the_title();?> <?php the_permalink();?> via @kangpaidjo” rel=”nofollow” target=”_blank” title=”Share on Twitter”>Tweet</a> |
<a href=”http://www.digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title() ?>” title=”Submit Post to Digg” rel=”nofollow” target=”_blank”> Digg </a>|
</strong>
</p>
wah nice share nih
Semoga bermanfaat…
Gimana caranya memasukkan ke web instan?
Cara masukinnya harus masuk ke source code webnya
wah infonya sangat menarik….icip langsung di praktekin deh ke blog ane….terimakasih banyak aatas infonya gans…