Thursday, 17 April 2014

Metro Style Social Media Widget For Blogger

Metro Style Social Media Widget For Blogger
Social media widgets are recommended for bloggers to engage their visitors in their social media pages. If you have a facebook page, twitter profile, google+ page etc for your website/blog, then you can put their subscription links in a stylish way using social media widgets. In this post, I'll tell you how to add a metro style social media widget in your blog. Just follow the steps below:
1. Login to your blogger account and from the dashboard, go to LAYOUTS section.
2. Now, add a new HTML/Javascript widget and paste the following code in that:

<style>
.metro-social{width:315px}
.metro-social li{position:relative;cursor:pointer;padding:0;list-style:none}
.metro-social .facebookbt,.twitterbt,.googleplusbt,.pinterestbt,.linkedinbt,.youtubebt,.rssbt{z-index:7;float:left;margin:1px;position:relative;display:block}
.metro-social .facebookbt{background:url(http://3.bp.blogspot.com/-blrvl-XE9Wg/U0JYcW5eWCI/AAAAAAAAA70/jvhnu49cD1s/s1600/facebook.png) no-repeat center center #1f69b3;width:140px;height:141px}
.metro-social .twitterbt{background:url(http://3.bp.blogspot.com/-fYkV7v20ano/U0JYrGWbbyI/AAAAAAAAA78/HA-pwFpA_n4/s1600/twitter.png) no-repeat center center #43b3e5;width:68px;height:70px}
.metro-social .googleplusbt{background:url(http://3.bp.blogspot.com/-_jbMEr6vl2E/U0JY-FZo10I/AAAAAAAAA8E/XKJNX7XrSfM/s1600/google+plus.png) no-repeat center center #da4a38;width:69px;height:70px}
.metro-social .pinterestbt{background:url(http://4.bp.blogspot.com/-DwA-EY5Dpkg/U0JZLdQTN6I/AAAAAAAAA8M/c2ezfHjJGfk/s1600/pinterest.png) no-repeat center center #d73532;width:68px;height:69px}
.metro-social .linkedinbt{background:url(http://4.bp.blogspot.com/-16_IJFiS_Y0/U0JZWSO46CI/AAAAAAAAA8U/Ta8NVBpHGLw/s1600/linkedin.png) no-repeat center center #0097bd;width:69px;height:69px}
.metro-social .youtubebt{background:url(http://1.bp.blogspot.com/-D3LoyFmOE0I/U0JZjXXv9gI/AAAAAAAAA8c/mofmKsjSYDA/s1600/youtube.png) no-repeat center center #e64a41;width:140px;height:69px}
.metro-social .rssbt{background:url(http://2.bp.blogspot.com/-Urq63dsZBSc/U0JZy2_Ur8I/AAAAAAAAA8k/cLlFbi4Cs8c/s1600/feed.png) no-repeat center center #e9a01c;width:140px;height:69px}
.metro-social li:hover .facebookbt{background:url(http://1.bp.blogspot.com/-8T4PS-tRUvU/U0JaGlSIhzI/AAAAAAAAA8s/xPLWAGgOHw8/s1600/facebook.png) no-repeat center center #1f69b3}
.metro-social li:hover .twitterbt{background:url(http://2.bp.blogspot.com/-Z5FANzBJ298/U0JaSQpwAnI/AAAAAAAAA80/dWY06btPQA4/s1600/twitter.png) no-repeat center center #43b3e5}
.metro-social li:hover .googleplusbt{background:url(http://4.bp.blogspot.com/-RP4nSYTavp0/U0JYGKLrLZI/AAAAAAAAA7s/J3Q-3USoSFY/s1600/google+plus.png) no-repeat center center #da4a38}
.metro-social li:hover .pinterestbt{background:url(http://4.bp.blogspot.com/-0UfqIFPNhFA/U0JashKNrjI/AAAAAAAAA88/rLOCv5DOmJI/s1600/pinterest.png) no-repeat center center #d73532}
.metro-social li:hover .linkedinbt{background:url(http://3.bp.blogspot.com/-oPp--bO8D_I/U0Ja5oLxcfI/AAAAAAAAA9E/rs3u97t10j4/s1600/linkedin.png) no-repeat center center #0097bd}
.metro-social li:hover .youtubebt{background:url(http://2.bp.blogspot.com/-usJS-EB-zP4/U0JbFkd2wWI/AAAAAAAAA9M/msIqRsuI-Sk/s1600/youtube.png) no-repeat center center #e64a41}
.metro-social li:hover .rssbt{background:url(http://4.bp.blogspot.com/-MGXOeGKDQRY/U0JbSCUX9HI/AAAAAAAAA9U/Hjxu1DUjLwE/s1600/feed.png) no-repeat center center #e9a01c}
</style>
<div class="metro-social">
<br />
<li><a class="facebookbt" href="YOUR FACEBOOK PAGE LINK" target='_blank'></a></li>
<li><a class="twitterbt" href="YOUR TWITTER ACCOUNT LINK" target='_blank'></a></li>
<li><a rel='author' class="googleplusbt" href="YOUR GOOGLE PLUS LINK" target='_blank'></a></li>
<li><a class="pinterestbt" href="YOUR PINTEREST LINK" target='_blank'></a></li>
<li><a class="linkedinbt" href="YOUR LINKEDIN PROFILE LINK" target='_blank'></a></li>
<li><a class="youtubebt" href="YOUR YOUTUBE CHANNEL LINK" target='_blank'></a></li>
<li><a class="rssbt" href="YOUR FEED URL" target='_blank'></a></li>
</div>

3. Replace the red text with your own social media links and then save the widget and save the layout.
4. That's it. Open your blog and see the live preview of your metro style social media widget.
Keep visiting PC Tricks Guru for more tips and tricks.
Share:

3 comments:

  1. Hey Ashutosh,

    That's actually pretty cool and I'm wondering if the same type code could be used for WordPress. It looks like the coding wouldn't really be any different since it's being added to a widget. Of course I'm not a coder so you would know better than me but that's really cool.

    ~Adrienne

    ReplyDelete
    Replies
    1. This code is for blogger blogs only, but you can add it to your wordpress site also. Wordpress officially provides this widget as a plugin and you can get it from http://wordpress.org/plugins/metro-style-social-widget/
      Hoping to see this widget active in your blog very soon. :)

      Delete
    2. I prefer not to do plugins if necessary and the other social icons I had on my blog were coded and not a plugin. I actually did those myself but I'm sure I could find someone to do something similar. Thank you though, I appreciate that.

      Delete

Custom Search Box

Subscribe Our Newsletter

Advertise With Us

Blog Archive