Her web sitesinde sosyal paylaşım butonları bulunur.Sosyal medyanın sitenin yükselmesinde çok faydalı olduğu da çoğu webmaster tarafından bilinmektedir.Ben de blogumda kullanıyorum bu özelliği kullanıyorum.Ziyaretçilerinizi tek tık ile konuyu birçok sosyal medya sitesinde paylaşmasını sağlıyor.Bunlar facebook,twitter,google plus,pinterest,linkedin .Bu 5 site en önemlileri diyebilirim.Şimdi kodlara geçelim.Kodları php permalink kodu ile oluşturuyoruz.
Facebook paylaş kodu :
1 2 3 4 |
<a title="Facebook'ta Paylaş" href="http://www.facebook.com/share.php?u= <?php the_permalink('') ?> ">Facebook'ta Paylaş</a> |
Twitter paylaş kodu :
1 |
<a title="Twitter'da Paylaş" href="http://twitter.com/home/?status= <?php the_title(''); ?>+<?php the_permalink('') ?>"> Twitter'da Paylaş</a> |
Google + paylaş kodu :
1 2 3 4 |
<a title="Google+'da Paylaş" href="https://plus.google.com/share?url= <?php the_permalink('') ?>"> Google+'da Paylaş</a> |
Pinterest paylaş kodu :
1 2 3 4 |
<a title="Pinterest'te Paylaş" href="http://pinterest.com/pinthis? url=<?php the_permalink('') ?>"> Pinterest'te Paylaş</a> |
Linkedin paylaş kodu :
1 |
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-url="<?php the_permalink(); ?>" data-counter="top"></script> |