Socializza con noi !

Vorresti restare in contatto con noi? Seguici tramite le reti sociali , iscriviti ai nostri Feed RSS e tieniti aggiornato!

socialize socialize socialize
28ott2009
Author
Templategrafica
Category
Tutorial, wordpress
Tags
, ,
WORDPRESS : Come inserire un ‘Share on Facebook’ button ufficiale. Thumbnail

WORDPRESS : Come inserire un ‘Share on Facebook’ button ufficiale.

Esistono diversi plugin che ci aiutano nell’impostazione di un bottoncino ‘share on facebook’ , simile a quelli ‘retweet’ e ‘digg’ che utilizzo io su questo blog. Tutti ovviamente creati da utenti e sviluppatori non ‘ufficiali’. Oggi invece voglio mostrarvi come è possibile – e quanto sia semplice – inserire uno ‘share’ button per facebook sul tema del nostro wordpress.Per far cio’ ci basta aprire il file (a scelta) del nostro tema (es: single.php per mostrarlo nelle pagine interne dei post singoli) e aggiungere il seguente codice :

<a name=”fb_share” type=”box_count” href=”http://www.facebook.com/sharer.php”>Share</a><script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>

Il codice qui sopra aggiungerà un ‘tweetmeme’ style button, a forma di box. Non dobbiamo cambiare nulla al codice, in quanto l’indirizzo ‘share’ è unico per tutti.Se desiderate invece mostrare una versione più ‘compatta’ sulle vostre pagine inserite il seguente codice :

<a name=”fb_share” type=”button_count” href=”http://www.facebook.com/sharer.php”>Share</a><script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>

Come già detto non dovete modificare il codice, ma potete inserire delle varianti per rendere lo style del vostro bottone personalizzato.Per ulteriori informazioni o documentazione ufficiale di Facebook consultate il loro interessantissimo Wiki. Appuntamento alla prossima!

Author
Templategrafica

About the Author

Templategrafica has written 207 articles on Tgg – Webdesign Inspiration.

Visit this author's website   ·   View more posts by Templategrafica

Sharing is caring.
  • Subscribe to our feed
  • Share this post on Delicious
  • StumbleUpon this post
  • Share this post on Digg
  • Tweet about this post
  • Share this post on Mixx
  • Share this post on Technorati
  • Share this post on Facebook
  • Share this post on NewsVine
  • Share this post on Reddit
  • Share this post on Google
  • Share this post on LinkedIn

Discussion

No responses to "WORDPRESS : Come inserire un ‘Share on Facebook’ button ufficiale."

There are no comments yet, add one below.

Leave a Comment