Skip to content

Instantly share code, notes, and snippets.

View nhogan411's full-sized avatar

Nick Hogan nhogan411

  • St. Louis, Missouri
View GitHub Profile
@reidelliott
reidelliott / wp-social-share.php
Last active June 7, 2021 21:07
Function for social share links in WP using Font Awesome icons
/**
* Share Links
*/
function share_links() {
$home_url = esc_url( home_url( '/') );
$slug = basename( get_permalink() );
?>
<div class="share-links-container align-middle">
<ul class="share-links list-unstyled text-center text-sm-right mt-3 mb-3 mb-sm-0">
<li class="linkedin list-inline-item">