Mobil Siteye Whatsapp Paylaş Butonu Ekleme

Web sitenizdeki sosyal medyada paylaş butonlarının olduğu yere Whatsapp paylaşma butonu eklemek için çok farklı çözüm aramaya gerek yok. 

En kısa hali ile href= tagını şu şekinde değiştirebilirsiniz; <a href="whatsapp://send?text=http://www.nuhozcan.com">nuhozcan</a>

Örnek olarak;

<a href="whatsapp://send?text=<?php the_permalink();?>&t=<?php the_title(); ?>" data-action="share/whatsapp/share" target="blank">nuhozcan linkini WhatsApp’ta Paylaş</a>

<a href="whatsapp://send?text=<?php the_permalink();?>&t=<?php the_title(); ?>" data-action="share/whatsapp/share" target="blank"><img src="whatsapp_icon.png"/></span>" alt="nuhozcan linkini Whatsapp'ta Paylaş"/></a>

Wordpress'de hazır eklenti için Share Buttons by AddToAny bağlantısını kullanabilirsiniz.

Blogger, glogspot için 

<script type='text/javascript'>if(typeof wabtn4fg===&quot;undefined&quot;){wabtn4fg=1;h=document.head||document.getElementsByTagName(&quot;head&quot;)[0],s=document.createElement(&quot;script&quot;);s.type=&quot;text/javascript&quot;;s.src=&quot;https://dl.dropboxusercontent.com/u/7330191/whatsapp-sharing.js&quot;;h.appendChild(s);}</script>
<a class='wa_btn wa_btn_s' expr:data-href='data:post.url' expr:data-text='data:post.title' href='whatsapp://send' style='display:none'>Share</a>
<!-- Whatsapp Share Buttons End -->

Android kod bloğuna ise;

Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);

sendIntent.setPackage("com.whatsapp");

 

olarak ekleyebilirsiniz.

Comments (7) -

Warez
Warez
21.7.2017 12:19:26 #

Thanks for this!

Warez
Warez
24.7.2017 01:47:21 #

Thanks for the post!

Warez
Warez
25.7.2017 00:32:51 #

Thanks for the post!

Warez
Warez
25.7.2017 20:58:26 #

Thanks for this!

www.metrocarremovals.com.au
www.metrocarremovals.com.au
2.8.2017 05:00:46 #

You have remarked very interesting details! ps nice internet site.

car wreckers in melbourne
car wreckers in melbourne
8.8.2017 07:33:12 #

I gotta  favorite this  site it seems  handy   handy

www.metrocarremovals.com.au
www.metrocarremovals.com.au
9.8.2017 04:09:01 #

It is actually a great and useful piece of info. I'm satisfied that you shared this helpful information with us. Please keep us informed like this. Thanks for sharing.

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Calendar

<<  Ekim 2017  >>
PaSaÇaPeCuCuPa
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

View posts in large calendar

Tag cloud

Page List

RecentComments

Comment RSS