This is just a simple shortcode without the wordpress plugin. If your site doesn’t just cater “world of warcraft” posts such like this one and is very much concerned about adding more bandwidth to your website when using WoWhead tooltip, then you can just add this simple shortcode (without the space) [ wowtooltip ] to your post and it will call the
<script type="text/javascript" src="http://static.wowhead.com/widgets/power.js"></script>
only in that post.
To have this kind of shortcode, add the following code in the functions.php of your current theme.
/*
add this in functions.php
*/
function generateWowToolTip($atts) {
global $post;
return '<script type="text/javascript" src="http://static.wowhead.com/widgets/power.js"></script>';
}
add_shortcode('wowtooltip', 'generateWowToolTip');
Once you’re done, simply add the
wowtooltip between [] to call on the shortcode and your WordPress will automatically call and replace the shortcode with the wowhead tooltips javascript.
Please take note: That this is only calls on the javascript. You still have to follow the advanced usage of WowHead tooltips.
Enjoy!