Thesis Tutorial – Floating Icons – Find out how I did it

So, I had a look at a site and saw some cool buttons floating on the left hand side. I thought it would be nice if I could replicate the same effect on my site. At that stage I currently had a floating Twitter badge and even posted about how how to get it on your site.

Anyway, as being curious about how they achieved it, I checked out their css file and browsed their source code. I seem to do that a lot when I find something cool. After a few trials and error, I came up with the following details and thought of sharing it with you all.

I have tested this on Firefox 3.5.2 and IE 8 and it seems to be working 100%.

From the image below, you can see I have icons for Twitter, RSS via email, my contact page, LinkedIn, Skype and then to login into Serradinho. You can put any icons there and have them linked to what ever site you need. Just take the basis of the code and manipulate it as you want to.

Floating Icons on side of website

Floating Icons on side of website

You can copy the CSS into your custom.css file or what ever file you are using for your css styling. Just a small note if you want to change the side it’s showing on. Yes, I checked that out too as I’m sure I will get asked that :) If you want the icons on the right hand side of your site, then all you have to do is change the ‘left’ to ‘right’ in the first line of the css styling. That’s it!

You can copy the function into your custom_functions.php file. If you are not using Thesis, then I suggest you find a way of adding it to your current theme. More links can be added or you could install a great WordPress plugin that adds social profiles to the side of your site.

Download:

Thesis Tutorial - Floating Icons on the side of your site

The download was made available on 25 November 2009 and is in zip format. The file size is 982 bytes and has currently been downloaded 298 times.

I have copied the CSS and PHP details and zipped the file, download it now and try it out today or even at another time.

Final Thought

I hope you have enjoyed this small post, but I just wanted to let you all know how I did it. If you have any queries, please let me know. Would like to know if you implement this onto your site.

  • Subscribe to RSS Feed
  • Submit post to StumbleUpon
  • Submit post to Twitter
  • Submit post to Delicious
  • Submit post to Digg
  • Submit post to Reddit
  • Submit post to Technorati
  • Submit post to Facebook
  • Submit post to GoogleBuzz
  • Submit post to LinkedIn
  • Submit post to FriendFeed

This blog is using the Thesis theme & WordPress blogging platform. Customizations on this blog have been done by myself.

I currently freelance as a part-time web designer whereby I offer a variety of web related services. You could alternatively browse through my portfolio for examples of work completed.

{ 46 comments }

1 Benjamin Cip August 24, 2009 at 12:41 pm

Too bad I don’t have a Thesis theme right now… I might buy a thesis theme for my EPN site.
Benjamin Cip´s last blog ..I’m Running A $20 Logo Contest On Digital Point Forum My ComLuv Profile

2 George Serradinho August 24, 2009 at 1:29 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Benjamin Cip – you could maybe adapt it for other themes as well. I have not tried, but it should be possible.

3 Compute Live August 24, 2009 at 12:46 pm

Follow on Twitter Follow @computelive on Twitter.



Thanks George for posting this… Putting up on my blog right now..
Compute Live´s last blog ..How to Fix HTC Hero Sync Problem in Windows 7 My ComLuv Profile

4 George Serradinho August 24, 2009 at 1:29 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Compute Live – I see it’s already up. If you are not using the other links, then you can remove them or replace them with others.

5 Compute Live August 24, 2009 at 2:42 pm

Follow on Twitter Follow @computelive on Twitter.



Yes I am planning to replace them with other badges.. :)
Compute Live´s last blog ..How to Fix HTC Hero Sync Problem in Windows 7 My ComLuv Profile

6 George Serradinho August 24, 2009 at 3:32 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Compute Live – thanks, I’m changing mine already.

7 Compute Live August 24, 2009 at 5:18 pm

Follow on Twitter Follow @computelive on Twitter.



I think you should go for smaller icons.. because on a lower screen resolution the icons will appear over your blog space..
Compute Live´s last blog ..How to Fix HTC Hero Sync Problem in Windows 7 My ComLuv Profile

8 George Serradinho August 25, 2009 at 6:58 am

Follow on Twitter Follow @gfserradinho on Twitter.



@compute Live – thanks for the heads up. I’m still debating on the icons to use.

9 Compute Live August 25, 2009 at 11:36 am

Follow on Twitter Follow @computelive on Twitter.



lol… I can see that ;)
Compute Live´s last blog ..Free Batman: Arkham Asylum PC game with Nvidia Graphic cards My ComLuv Profile

10 Klaus @ TechPatio August 24, 2009 at 12:57 pm

Follow on Twitter Follow @TechPatio on Twitter.



Excellent – just what I was waiting for, thanks :)

Where did you get the icons, are they allowed to be copied (for us)?
Klaus @ TechPatio´s last blog ..I Luv’ CommentLuv – do you have it on your WordPress blog yet? My ComLuv Profile

11 George Serradinho August 24, 2009 at 1:31 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Klaus – I see the icons are now being used all over. It’s no problem as I will probably change mine a bit so that it’s not the same. I would like mine to be different if possible.

12 Surender Sharma August 24, 2009 at 3:13 pm

Excellent job.
This integration can save our valuable space on the blog and looks very nice.
Surender Sharma´s last blog ..How to Tweet Your Blog Post Automatically on Twitter My ComLuv Profile

13 George Serradinho August 24, 2009 at 3:32 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Surender – no problem, trying my best to help others as I go along.

14 Ruchi August 24, 2009 at 3:24 pm

Follow on Twitter Follow @ruchi84 on Twitter.



Thanks for sharing . These icons will surely look nice. I will give a try .
Ruchi´s last blog ..Long Distance Relationship My ComLuv Profile

15 George Serradinho August 24, 2009 at 3:35 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Ruchi – no problem, enjoy :)

16 Nehh August 24, 2009 at 5:52 pm

They are really cool.. but unfortunately I don’t have Thesis theme .
Nehh´s last blog ..Heidi montag in bikini My ComLuv Profile

17 Stefan August 24, 2009 at 6:17 pm

Follow on Twitter Follow @ducedo on Twitter.



As George wrote above you should be able to adapt it for other themes as well. With that said I highly recommend you to try Thesis. Well worth the money.
Stefan´s last blog ..How to Backup and Restore Your Wordpress Blog My ComLuv Profile

18 George Serradinho August 25, 2009 at 7:00 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Stefan – all themes have a functions file, you will just have to see how you can incorporate it into your current theme.

19 George Serradinho August 25, 2009 at 6:59 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Nehh – sorry to hear that. You might be able to do it with your current theme.

20 TechZoomIn August 24, 2009 at 6:08 pm

I was actually thought of mailing you to ask this. I’ll read the whole post later when i reach home and will mail you for help :)
TechZoomIn´s last blog ..50 Points Checklist to Improve Your Blog My ComLuv Profile

21 George Serradinho August 25, 2009 at 6:59 am

Follow on Twitter Follow @gfserradinho on Twitter.



@TechZoomIn – not a problem, mail me and I will see what I can do for you.

22 Christie August 24, 2009 at 7:20 pm

Thanks so much George! I will do this in the next few nights. Thanks for providing all the code so I just have to copy/paste. :D
Christie´s last blog ..MiscBytes unusual niche of the month My ComLuv Profile

23 George Serradinho August 25, 2009 at 7:01 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Christie – no problem, thought it would be nice to show others how I did it.

24 Doug Dillard August 25, 2009 at 11:18 am

George, each time I read one of your EXCELLENT Thesis customization posts it makes me want to go out and buy it. I am sure I eventually will, but I have too much stuff going on right now. I need to get it when I have some free time to play around with it.
Doug Dillard´s last blog ..Win an Awesome Custom Banner Package My ComLuv Profile

25 George Serradinho August 25, 2009 at 11:27 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Doug – let me know when you do decide on getting it, I will help out where I can. There are so many things one can do with Thesis.

26 Jacob Yap August 26, 2009 at 5:28 am

Follow on Twitter Follow @jacobyap on Twitter.



Thanks for the little trick, George. Your floating icons are pretty cool!
Jacob Yap´s last blog ..A Review of the Godlike Thesis Wordpress Theme My ComLuv Profile

27 George Serradinho August 26, 2009 at 7:34 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Jacob Yap – glad you like them, I struggled to get the right icons and all, I could not make up my mind.

28 Ana August 27, 2009 at 4:20 pm

Follow on Twitter Follow @TruAnaGoncalves on Twitter.



Brilliant. I think that is very professional looking, and has a certain beauty about it. Thanks for your share once again, Serradinho. :) Always very helpful.
Ana´s last blog ..An old sketch taps into delight My ComLuv Profile

29 George Serradinho August 27, 2009 at 6:02 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Ana – no problem, glad to have helped you.

30 shaunjudy August 29, 2009 at 7:58 am

Looks real good man! I like it a lot. Oh by the way I like the cartoon image of you looks just like you which is awesome.
shaunjudy´s last blog ..Link Love Tuesday 8-25-09 My ComLuv Profile

31 George Serradinho August 29, 2009 at 9:06 am

Follow on Twitter Follow @gfserradinho on Twitter.



@shaunjudy – thanks for that, the cartoon is similar to me :)

32 Extreme John August 29, 2009 at 6:38 pm

Follow on Twitter Follow @extremejohn on Twitter.



I was wondering how you did that George, even commented in that last post about it.

Damn Thesis :( I might have to give in and have a new theme made.
Extreme John´s last blog ..The Copycat Company My ComLuv Profile

33 George Serradinho August 29, 2009 at 11:08 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Extreme John – No Way, your site is awesome, very unique. I love it :)

34 barry September 7, 2009 at 10:08 pm

Great tutorial that was easy to follow. I have it on my site but it only shows with Firefox and not with IE? Any thoughts on why it wont work with IE?

35 George Serradinho September 8, 2009 at 6:56 am

Follow on Twitter Follow @gfserradinho on Twitter.



@barry – when I checked it was on both IE and Fx, make sure you have the latest version of IE. It could be that you are using a very old version.

36 Atul September 30, 2009 at 6:43 am

Follow on Twitter Follow @techofweb on Twitter.



Hi George

Can I use this in mine blog..Actually I do have Ggl Ads in mine sidebar..so can i use these floating icons too in sidebar..

A silly question but I do fear that interrupting google ads in this way might not be against Adsense policies
Atul´s last blog ..Contact Google-Complete List of Google Contacts My ComLuv Profile

37 George Serradinho September 30, 2009 at 7:08 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Atul – try and let me know if it works or what the outcome is.

38 Tatesjourney October 1, 2009 at 6:36 pm

Thank you. I have been searching for something like this. This will definitely help in creating some room on the sidebar since this icons will float now.
Tatesjourney´s last blog ..The hotel I stayed in My ComLuv Profile

39 George Serradinho October 2, 2009 at 7:01 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Tatesjourney – yes, it will create more space and hopefully a better final look :)

40 Mike Krumlauf October 4, 2009 at 9:32 pm

Hi George,

Thanks for the tutorial, but I seem to be having trouble and can’t get it to work. Any chance I can get a hand if you get a second?

Thanks in advance,
Mike

41 George Serradinho October 5, 2009 at 7:10 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Mike – let me know what the problem is and I will see if I can help out :)

42 Mike Krumlauf October 6, 2009 at 1:37 am

Ok, I added the information that you put up above to my custom css file and then the custom_functions.php, but after I did both, I saved and had an immediate error that said there was an error on line 44 (I believe) and then I had to upload the old cust0m-functions.php file to get the site working again.

Mike

43 George Serradinho October 6, 2009 at 7:01 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Mike – have a look at the code when you have inserted my details as it should work. How did you copy the code? Did you check the code before saving that all is correct. I find that sometimes if not copied correctly, it will give errors.

44 Mike Krumlauf October 6, 2009 at 2:53 pm

i used the copy to clipboard function. it looked like it copied everything.
No problems happened when I pasted the CSS code, but didn’t work when i copied the custom_functions code.

45 Mike Krumlauf October 9, 2009 at 4:49 pm

Thanks, somehow I figured it out. Like you said, it must have been a transfer problem :)

I do have a couple other questions though. How do I create similar icons to my social networking sites you have on the left? And, how do I make sure that when someone clicks it, it pulls in the blog post information for sharing?

Thanks again.

46 KewlGadget 4 Great Gifts December 4, 2009 at 2:20 am

Follow on Twitter Follow @kewlgadget on Twitter.



Thanks for the floating tips. Very interesting stuff, and seems simple.
Kewl Kat
KewlGadget 4 Great Gifts´s last blog ..Multi-Directional Drive Car – The Nissan Pivo 2 My ComLuv Profile

{ 5 trackbacks }

Previous post:

Next post: