CSS3 Tooltips are Fancy balloons or boxes that are used to show your blog readers some extra information on mouse hover. They can be used in different ways for example, to provide captions for images, or longer descriptions for hyperlinks, or any useful info by simply hovering over the element containing the tooltip class. Thanks to Blogger Shortcode Plugin now you can create colorful animated Tooltips to enhance your blogspot user interface. This new Shortcode for Tooltip will help you display balloons at top or bottom of your hyperlinks on mouse hover. You can add them inside your blog posts, widgets and even inside your blog comments! You will also be able to display Images inside the tooltip box and display a custom message using HTML. See the demo first!
1. Install Blogger Shortcode Plugin
In order to use Tooltip shortcode you must first install the shortcode plugin for your blogspot blog by following 7 easy steps shared on the link below:
Skip installing it if you have already added it in your blogspot template
2. Add ToolTip Color Theme Skins
I have created two theme skins for the tooltips. One is yellow and second is with black background. You can customize the tooltip background colors as per your choice by following the instructions below:
1 Go To Blogger > Template > Backup your Template
2 Click "Edit HTML"
3 Search for this code ]]></b:skin>
4 Paste the following Code just above it
/*------ CSS3 Tooltip Shortcode -------------*/
.tooltip{outline:none;text-decoration:none!important;border-bottom:2px dotted #0080ff;position:relative}.tooltip:hover {border-bottom: none;}.tooltip strong{line-height:30px}.tooltip > span{max-width:300px;width:290px;padding:10px 20px;opacity:0;bottom:170%;margin-left:-120px;visibility:hidden;z-index:10;position:absolute;font-family:Arial;font-size:12px;font-style:normal;border-radius:2px;box-shadow:2px 2px 5px #999;-webkit-transition-property:opacity,margin-top,visibility,margin-left;-webkit-transition-duration:0.4s,0.3s,0.4s,.3s;-webkit-transition-timing-function:ease-in-out,ease-in-out,ease-in-out,ease-in-out;transition-property:opacity,margin-top,visibility,margin-left;transition-duration:0.4s,0.3s,0.4s,.3s;transition-timing-function:ease-in-out,ease-in-out,ease-in-out,ease-in-out}.tooltip > span img{float:right;width:110px;margin:0 0 30px 10px;padding: 0;border: none;}.tooltip:hover > span{opacity:1;text-decoration:none;visibility:visible;overflow:visible;display:inline;margin-left:-90px}.tooltip span b{width:15px;height:15px;margin-left:20px;bottom:-9px;display:block;position:absolute;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);display:none\0/;*display:none}.tooltip > span{color:#fff;background:#222222 url(http://test.stcnetwork.org/wp-content/themes/swag/assets/images/patterns/overlay2-20.png);border:1px solid #ffffff}.tooltip span b{background:#222222 url(http://test.stcnetwork.org/wp-content/themes/swag/assets/images/patterns/overlay2-20.png);border-bottom:1px solid #ffffff;border-left:1px solid #ffffff} .tooltip:before {content: "\f05a";font-family: FontAwesome;padding:0px 5px;}
/*
.tooltip > span{background:orange;border:1px solid #ff0}.tooltip span b{margin-top:-19px;top:10px;background:orange;border-top:1px solid #ff0;border-right:1px solid #ff0;border-bottom:1px solid orange;border-left:1px solid orange}*/
Make these Customizations if you want:
By Default the tooltip background is black and it pops up at the top of the hyperlink. If you want to display the tooltip at the bottom of the link instead then make this simple change to the CSS code above:
- Replace bottom with Top
- Remove the yellow highlighted symbols /* and this */
- To change the orange background replace orange with a color of your choice or its hexadecimal code. Replace it 4 times
- To change the border color of the orange tooltip replace ff0 with a hexadecimal color code of your choice. Replace it 3 times
Tip: Use our Color Code Generator to pick colors of your choice.
If you like to change background colors of the black tooltip then follow these steps:
- To change the black background replace 222222 with the hexadecimal color code of your choice.
- To change the border color replace ffffff with your prefered hexadecimal color code
- To change the color of the dotted underline that appears below link then replace 0080ff with your color code.
5 Save your template and all done!
Finally add Tooltips Shortcode
Now whenever you wish to add some information to a link then use the shortcode in this format
[tooltip url="ADD LINK HERE" title="ADD TITLE HERE"]Add HTML Text Here[/tooltip]
Lets create a simple tooltip with title "Blogger Shortcode Plugin" as shown below:
[tooltip url="http://www.mybloggertricks.com/2015/04/blogger-shortcode-plugin.html" title="Blogger Shortcode Plugin"]
Blogger Shortcodes is a Plugin developed by STCnetwork.org that helps bloggers embed widgets and tools anywhere in blogger with
a simple one line code
[/tooltip]
OUTPUT:
Now lets create a tooltip which contains a header, some description and an image. You will create the shortcode in this format:
[tooltip url="http://www.mybloggertricks.com/2015/04/blogger-shortcode-plugin.html" title="Blogger Shortcode Plugin"]
<strong><u>What is Blogger Shortcode Plugin?</u></strong><br/>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4L3x1hqZZPA1uD-duXQrRqqeaTt-rlCRwIG0zV1ZuJDItFbgmNInuMr8Z51rBaZGEEvX5hnqZfvGaxWfm5S_eKJgUs88UNIR6XU-1fktejw1NyyVG6iPO2oDhxNgoBFpWGU9_24d3uLL9/?imgmax=800">
Blogger Shortcodes is a Plugin developed by STCnetwork.org that helps bloggers embed widgets and tools anywhere in blogger with
a simple one line code
[/tooltip]
You can insert any html (except a hyperlink) inside the tooltips square braces.
OUTPUT:
That's it! Have fun adding any stuff to the tooltip box :)
Update: An info Icon has been added that will prompt readers that the link contains some info.
Need Help?
This shortcode was developed based on the User request posted by Shivansh on our forum. You can also request us to create a shortcode of your choice.
Do let us know if you need any help if needed. I hope this new shortcode may add a new life to your blogspot blogs. Peace and blessings buddies! =)
If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »
This is Amazing and very simple to use tooltip option. before It, I used it once which is some lengthy process but now i'm much interested to add in to my Blog.
ReplyDeleteThanks ton for sparing your efforts and helping us.
I am glad you liked it. Yes the tutorial may look lengthy because we tried to mention all details so that you may find it easy to implement. Further once it is installed it will save precious time by simply pasting one liner shortcodes to make the magic work each time. =)
DeleteThanks Mohammad for releasing and creating this awesome tooltip for bloggers. For some days, I was unable to install tooltip on my blog because already available tooltip has two drawbacks. First, it makes the blog's load time poor and second, it is time taking because be have to do some changes by going into HTML mode while creating a post. Thanks for implementing the Info icon and mentioning my name. :) God bless you buddy.
ReplyDeleteRegards,
Shivansh Verma Skv
You are always welcomed buddy! The best thing about shortcodes is that they are extremely light weight and only one function is executed at a time which is called. Since shortcodes are textual in nature, this makes it easy to insert the tooltips anytime you want without needing to paste a long piece of HTML code
Delete=)
I hope these shortcodes may make blogging experience even more worthwhile for some :)
ReplyDeleteThank you chelyz for the kind feedback
I've done everything, but does not work.
ReplyDeleteHello. Is there a way to use this to display blog authors' profiles in the pages widget? My blog has several authors and they each have a page labeled with their name. I want this to show their profile images with text when you hover your mouse over them. I added it to my blog, but it messed up the recent comments widget. Is there a way to avoid that as well?
ReplyDeletehttp://tcacpbloggers.blogspot.com