Snippets

Rik Kendell WP Social Sharing links

Created by Rik Kendell
<div class="post-share">
	
	<span class="title">Share this</span>

	<ul class="links">
        <!-- Twitter -->
		<li><a href="http://twitter.com/share?text=Currently reading <?php echo rawurlencode( get_the_title() ); ?>&amp;url=<?php the_permalink(); ?>" title="Click to share this post on Twitter" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><span class="fa fa-twitter"></span></a></li>
        
        <!-- Facebook -->
		<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&amp;t=<?php echo rawurlencode( get_the_title() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><span class="fa fa-facebook"></span></a></li>
        
        <!-- LinkedIn -->
		<li><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php the_permalink(); ?>&amp;title=<?php echo rawurlencode( get_the_title() ); ?>&amp;summary=&amp;source=RecordSure" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><span class="fa fa-linkedin-square"></span></a></li>	
	</ul>

</div><!-- .post-share -->

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.