First of all you have to insert the following code into the CSS file
[php]
#share-buttons img {
width: 25px;
padding: 5px;
border: 0;
box-shadow: 0;
display: inline;
}
[/php]
Then input this code where you want to display the buttons.
[php]</pre>
<div id="share-buttons">
<!– Facebook –>
<a href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink(); ?>" target="_blank"><img src="http://www.simplesharebuttons.com/images/somacro/facebook.png" alt="Facebook" width="25" height="25" /></a>
<!– Twitter –>
<a href="http://twitter.com/share?url=<?php echo get_permalink(); ?>&text=<?php wp_title(); ?>" target="_blank"><img src="http://www.simplesharebuttons.com/images/somacro/twitter.png" alt="Twitter" width="25" height="25" /></a>
<!– Google+ –>
<a href="https://plus.google.com/share?url=<?php echo get_permalink(); ?>" target="_blank"><img src="http://www.simplesharebuttons.com/images/somacro/google.png" alt="Google" width="25" height="25" /></a>
<!– Email –>
<a href="mailto:?Subject=<?php wp_title(); ?>&Body=Vi raccomando"><img src="http://www.simplesharebuttons.com/images/somacro/email.png" alt="Email" width="25" height="25" /></a></div>
<pre>
[/php]
Leave a Reply