How To Add Tooltip To Text in Blogger

Jquery tooltip plugin is great tool to explain a lot from a single word.You can easily implement this in your blog also it is very easy to use.You can highlight some words and add a tooltip to them,when any user hovers on the word a smooth tooltip will appear just above of the highlighted word with your description.This jQuery tooltip is designed by nettuts+ and I have reshared it on Helper Blogger.Now lets see how to add it and use it,

How To Add jQuery Tooltip To Blogger?

As I mentioned above the installation and usage of the tooltip is very easy,you just have to put some code in your template,just follow below simple steps.

1. Adding Tooltip Scripts

  1. Go to Blogger Dashboard > Template
  2. Download a copy of your template
  3. Click on Edit HTML
  4. Hit Proceed button
  5. Find for below code in your template

</head>

add below code just above it,

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" src="http://yourjavascript.com/21412118492/truebloggertricks.blogspot.com-tooltip.js"></script>

Note - If you have already added a jQuery plugin to your blog then don't add the first line from above code.

2. Adding Tooltip Styles


Find below code in your template,

]]></b:skin>

add below code just above it,

.tip { width: 212px; padding-top: 37px; overflow: hidden; display: none; position: absolute; z-index: 500; background: transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJG3VhaZF-hHLSZ6-vcwrNIytyBf7TattBKd_kAMhboKZL_xSDA1wqky1MXkZXOFMTS2JSGGOP0-tMrHlNev3p4qtwHM9zrFQN5l_8DMmi_aHmEMgJnyyiZ5EjY_N0O95qgahqxiu1t_s/s1600/hb_tipTop.png) no-repeat top; } .tipMid { background: transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlbiI4ewnkd1Lva_5KygEug88HEzQXKncQM3fkl6g-NEgynpGyaO08K8lbnX2T_Sh8zhFlbyL1P2obXqcCSMR_HpI8zOAf8gPfEksk42SEd9Vje4YS_JiCulsNhKRy27RytJJ38hqSRR0/s1600/hb_tipMid.png) repeat-y; padding: 0 25px 20px 25px; } .tipBtm { background: transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5C24jmlbsTc7wBudi_AQqeyG8rVag377adNxKwcVRdHeY9SJP5_D_fePvRKOGkXTA9n91CCG5Hg4NX84e__I-O1EJ3s3OHDgU7rfMq01LbNcWZU-BXV6Dt5vjVmxwkYCEyNQpm6cbusM/s1600/hb_tipBtm.png) no-repeat bottom; height: 32px; }

3. Using The Tooltip


If you want to add tooltip in blogger posts,then go to Edit HTML tab and add below code inside it.

<div class="tTip" title="Add Tooltip Message Here">Add Your Text Here</div>

  • Replace Add Tooltip Message Here with the message which you want to appear in tooltip.
  • Replace Add Your Text Here with the text on which you want to appear tooltip.

Hope you have liked it :)

1 comment:

  1. A special thanks for this informative post. I definitely learned a few new things here.

    ReplyDelete

Please don't spam. We hate spammers