is there a way to change the tooltip Background with this?
also is there a way to link spells and achieves?
]]>Hey Novium,
I can’t really get this to function properly on WordPress 3.8. Might be related to the WP version though.
Here are the issues I’m encountering;
1. Shortcode isn’t working properly. Produces a link named “item” instead of the actual item name (but the link works).
2. Links load at random. I have a large list (~50) of enchants, and some of them will be correctly renamed, colorized and linked, others won’t. It’s random and changes with a refresh.
Not a bug, but is there a way to make this work with item names?
]]>Not sure why, but for some reasons the links don’t work until you’ve moused over them once. I.e when the page first loads, they don’t appear. After you mouse over them a couple of times they all appear.
Example: https://www.evrelia.com/posttest/
]]>Does this work with Hearthstone?
]]>If you add the following to your plugin then people will be able to use the shortcode [wowhead]itemnumber[/wowhead] in their posts. This may or may not be easier than adding the full link.
function wowhead_shortcode( $atts, $content = null ) {
return '<a href="https://www.wowhead.com/item=' . $content . '"></a>';
}
add_shortcode( 'wowhead', 'wowhead_shortcode' );
You might also want to change the var to
var wowhead_tooltips = { "colorlinks": true, "renamelinks": true }
so that people don’t have to add the name of the item and so that it is colored according to quality.
]]>