Skip to content

Instantly share code, notes, and snippets.

@thegulshankumar
Created June 30, 2017 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thegulshankumar/c79e431252975b07d1285551677ff2ef to your computer and use it in GitHub Desktop.
Save thegulshankumar/c79e431252975b07d1285551677ff2ef to your computer and use it in GitHub Desktop.
Learn how to add Social Icons with Font Awesome
<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css?ver=4.4.0' type='text/css' media='all'/>
<style type="text/css">
.gkprofile
ul {
overflow: auto;
}
.gkprofile ul li {
list-style-type: none;
float: left;
}
.gkprofile ul li a i {
background: #dd4b39;
color: #fff;
width: 45px;
height: 33px;
font-size: 24px;
text-align: center;
margin-right: 12px;
padding-top: 16%;
transition: all 0.2s ease-in-out;
}
.gkprofile .fa-facebook {
background:#3b5998
}
.gkprofile .fa-linkedin {
background:#007bb6
}
.gkprofile .fa-twitter {
background:#00aced
}
.gkprofile .google-plus {
background:#dd4b39
}
.gkprofile .fa-youtube {
background:#e52d27
}
.gkprofile ul li a i:hover {
opacity: .7;
}
</style>
<div class="gkprofile">
<ul>
<li><a title="Like on Facebook" href="https://www.facebook.com/your_id"><i class="fa fa-facebook"></i></a></li>
<li><a title="Subscribe on YouTube" href="https://www.youtube.com/channel/your_id"><i class="fa fa-youtube"></i></a></li>
<li><a title="Follow on Twitter" href="https://twitter.com/your_id"><i class="fa fa-twitter"></i></a></li>
<li><a title="Join on Google+" href="https://plus.google.com/+your_id"><i class="fa fa-google-plus"></i>
<p></a></li>
</ul>
</div>
@thegulshankumar
Copy link
Author

thegulshankumar commented Aug 21, 2017

Instruction

  1. Copy above code in notepad
  2. Update social account links
  3. Place in text/html widget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment