FOLLOW US Get Thesis!
Luca Filigheddu Simpson AvatarNow Enjoying

How To Create A Social Toolbar For Your Thesis-Powered Wordpress Blog

by Luca Filigheddu on May 6, 2009



How To Create A Social Toolbar For Your Thesis-Powered Wordpress Blog

If you use the Thesis Wordpress Theme and want to be easily contacted from your blog and make yourself discoverable in the social networks you use most, I jus realized a simple toolbar which puts together all your IDs and can be placed on the top-right corner of my blog.

Here is how to create it, step-by step. The following example includes your Email, Twitter, Facebook, Friendfeed, Linkedin, Skype, Feedburner, but you can add more by just adding new <li></li> blocks where you like.

1) Open the custom-functions.php file inside the /thesis/custom folder.

2) Add the following code and save:

function add_social_links() {?>
<span>
<ul class=”icon-links”>
<li><a href=”mailto:YOUREMAIL”><img src=”http://YOURSITE/wp-content/themes/thesis/custom/images/gmail_16.png” title=”Email YOURNAME” /></a></li>
<li><a rel=”me” href=”http://twitter.com/YOURTWITTERUSER”><img src=”http://YOURSITE/wp-content/themes/thesis/custom/images/twitter_16.png” title=”Follow YOURNAME on Twitter” /></a></li>
<li><a rel=”me” href=”http://www.facebook.com/profile.php?id=YOURFBID”><img src=”http://www.lucafiligheddu.com/wp-content/themes/thesis/custom/images/facebook_16.png” title=”YOURNAME’s Facebook profile” /></a></li>
<li><a href=”http://friendfeed.com/YOURFFUSERNAME”><img src=”http://YOURSITE/wp-content/themes/thesis/custom/images/friendfeed_16.png” title=”Join me on friendfeed” /></a></li>
<li><a rel=”me” href=”http://www.linkedin.com/in/YOURLINKEDIN”><img src=”http://YOURSITE/wp-content/themes/thesis/custom/images/linkedin_16.png” title=”Luca’s LinkedIn profile” /></a></li>
<li><a href=”callto://YOURSKYPEID/”><img src=”http://YOURSITE/wp-content/themes/thesis/custom/images/skype_16.png” title=”Contact me with Skype” /></a></li>
<li><a href=”http://feeds2.feedburner.com/lucafilighedducom”><img src=”http://YOURSITE/wp-content/themes/thesis/custom/images/feedburner_16.png” title=”Subscribe to this blog” /></a></li>
</ul>
</span> <?php }

Then

add_action(‘thesis_hook_header’, ‘add_social_links’);

In the function above please replace:

YOURSITE with your website’s URL

YOURNAME with your name

YOURTWITTERUSER with your Twitter username

YOURFBID with your Facebook ID

YOURFFUSERNAME with your Friendfeed username

YOURLINKEDIN with your id available on your Linkedin public profile

YOURSKYPEID with your Skype ID

3) Open your custom.css file inside the /thesis/custom folder.

4) Add the following code and save:

//links to social networks, email and RSS
.custom ul.icon-links {
padding: 0;
margin: 0 0 8px 0;
font-size: 1em;
padding: 0.2em 0.2em;
width: 100%;
}
.custom ul.icon-links li {
list-style-type: none;
display: inline;
color: #807E70;
}
.custom ul.icon-links img {
vertical-align: text-top;
}
.custom #header span {
position:absolute;
top: 0;
right: 0;
}

5) Upload to your /thesis/custom/images folder a 16×16 icon for each service. There are tons of alternatives. Make sure the names of the icon files specified in (2) are correct.

If you follow the simple steps above, you’ll get something similar to the bar you can see on top-right of this blog.

Hope this helps, enjoy :-)

Reblog this post [with Zemanta]

Why I run my blog on Thesis Wordpress Theme

Get Thesis

Thesis gives my blog a very professional look with very clean, easy-to-read layout and SEO friendly design. Take a look at my post explaining why I chose Thesis for my blog. Get your Thesis Theme today!


Why I host my blog on Media Temple

Mediatemple Hosting

Media Temple Grid-Service is a hosting solution which guarantees speed and reliability to my blog. Unlike other shared hosting plans, Mediatemple Grid-Service eliminates the “bad neighbor effect” by distributing the load over several servers instead of confining it to one machine. This redundancy means more stability and virtually no downtime. Get Media Temple Hosting services now!


  • what problem do you have ?
  • andrew
    I've had the same problem as Rob even after messing around with the code and tweaking it.
  • rob
    Hi, I followed your advice to the letter but cannot get the same effect, your suggestions would be much appreciated
blog comments powered by Disqus