Tooltip For Blogger Using jQuery & CSS

tooltip-for-blogger
Recently, I came across an interesting tutorial about displaying Tooltip using jQuery. You may refer to "callingallgeeks.org - subscription box" to see an example about the same. In this article, we'll be learning about adding a simple HTML Tooltip to our blogger posts/template. You may check out the live demo by hovering your mouse over the links below.


Cool trick. Isn't it? Well, if your answer to the question is "Yes", then consider reading the rest of the article to get this hack installed on your blog as well. I have used the standard jQuery file that's hosted by Google in my tutorial. If you wish to host it on your blog ( for WordPress Users), then download the latest JavaScript file from jQuery website. Now, let's move to the tutorial.

1. Navigate to "Design >> Edit HTML" and make a backup of your template by clicking on the "Download full template" link at the top of the page. Once the back up is over, search for the following piece of code.
]]></b:skin>
2. Download the following text document (includes the CSS and JavaScript to run the widget) - CODE FOR TOOLTIP WIDGET. Replace the above code with the code present in the text document.
3. Save your template. That's it. 

To make the Tooltip actually work, you need to define an anchor tag and span tag in your post or anywhere in your template (within the body tags) with the following classes ( tip_trigger and tip) present in it. The coding should look similar to the one shown below.
<a href="YOUR LINK HERE" class="tip_trigger">
YOUR LINK TITLE
<span class="tip">
YOUR TEXT HERE
</span></a>
That's it! Replace "YOUR LINK TITLE" with the title of your link, "YOUR LINK HERE" with the URL you wish to point to and "YOUR TEXT  HERE" with the description you want to show the visitor on mouse hover. You need to repeat the same procedure to have multiple Tooltips on your blog. As far as the browser compatibility is concerned, the Tooltip hack is supported by the following major web browsers - Firefox, IE, Safari, Chrome, Opera, etc...

I hope you enjoyed this hack. Well, I'm just learning the basics about jQuery and CSS now. So, if there are any jQuery geeks out there, then I'm open to your suggestions. Share your opinions via comments. I'll soon post the coding for the subscription box using Tooltip similar to the one on "callingallgeeks".

Enjoyed the article?
Subscribe to this Blog via Email:

Click here to subscribe to FREE email updates from "Everything About Blogging", so that you do not miss out anything that can be valuable to you and your blog!

    Other Recommended Posts

  • CSS Tricks, jQuery
Sid Panjwani said on July 10, 2011 at 11:57 AM :

Lol... its not callingallgeeks.com.
Its callingallgeeks.org!!!

REPLY
Mukund said on July 10, 2011 at 12:41 PM :

@Sid Panjwani: Lol:) Sorry for that! Hope you enjoyed the article!

REPLY
sampetrova said on July 11, 2011 at 4:33 PM :

Thanks for sharing..Thanks for the post. It was so informative and helpful!
cheap web designer

REPLY
Mukund said on July 11, 2011 at 8:09 PM :

@sampetrova: Yup! Thanks for the comment! Hope you enjoy the upcoming articles on my blog too!

REPLY
John said on July 12, 2011 at 10:24 PM :

Thanks for sharing nice blog post, i like it so much

REPLY
Mukund said on July 13, 2011 at 12:38 AM :

@John: Thanks for the comment John! You'll find more articles related to web design in the upcoming days! Hope you enjoy them too!!!

REPLY
enrolled agent certification said on July 13, 2011 at 4:11 PM :

Thanks for article. I am a newbie in this field of blogging, seo, marketing etc. so I am eager to read similar posts where to get some new knowledge. thanks for post.

REPLY
Mukund said on July 13, 2011 at 4:26 PM :

@enrolled agent certification: Yup! Thanks for the comment! Hope we provide articles to your expectations!

REPLY
Android Mobile said on July 16, 2011 at 11:03 PM :

Very useful article, Thank you Mukund

REPLY
Mukund said on July 16, 2011 at 11:08 PM :

@Android Mobile: I'm glad to know that you found this article useful! Do share it with your friends via twitter or Facebook so that, it'll be useful for them as well! Thanks for the comment buddy!

REPLY
Nonoy Lucas said on January 14, 2012 at 7:40 AM :

Nice tutorial! It's the first that almost worked 100% among the ones I tried. When I hover over my link, the tooltip appears very far below (see at http://labtrial.blogspot.com/). Any idea how to solve? Thanks!

REPLY

Use the tab below to comment. No spam please!!!

[netinsert=0.0.1.11.14.1]