ForeverDB

Esta página aún no está traducida. Versión en inglés

Tooltips for your site

How to put ForeverDB's item and spell tooltips on your own site with one line of HTML: the snippet, how to link, the three options, behaviour on phones and what the script sends. Last checked 30 November 2026.

Open the page this help is about

What it is

One line of HTML makes every link to a ForeverDB item or spell on your page show the same tooltip as on ForeverDB, from the WoW Forever client's data. It stays current as the client changes. It is free, and needs no account or key.

Who it is for

People who run a guide, blog, fan site or forum template and can add a script tag. Places that do not run other people's scripts, such as Reddit, Discord and most forum posts, cannot use it, but ForeverDB links there still get a preview card. Developers who need data as JSON want the API instead.

Step by step

  1. Open the Tooltips for your site page.
  2. Under Add it to your page, tick the options you want: Icons, Quality colours and Rename links. The snippet changes as you tick.
  3. Press Copy.
  4. Paste the snippet once in your page, or in your site's template, just before </body>.
  5. Add links to ForeverDB items and spells, as described below. Hover a link, or tap it on a phone.

The snippet looks like this: <script src="https://foreverdb.net/embed/tooltips.js" data-icons="true" data-color-links="true" async></script>. It works anywhere you can add a script tag: your own site, a WordPress theme or a Custom HTML block, a guide site or a forum's templates. Load the script from foreverdb.net rather than copying it. It fetches the matching renderer and data from ForeverDB, and ForeverDB keeps it compatible.

The page has a demo that runs the real script on a pretend page with items and spells to hover.

Linking

Link to items and spells the way you already would. The script finds links to https://foreverdb.net/item/<id> and https://foreverdb.net/spell/<id>, with or without www., and with anything after the ID (?... or #...). It also finds any element with data-foreverdb="item:<id>" or data-foreverdb="spell:<id>", for text that should not be a link.

The ID is the number at the end of an item or spell page's address on ForeverDB. Links added to the page later, such as comments, infinite scroll and single-page apps, work too.

Every option

Tooltips always work. These three extras are off unless you turn them on.

OptionOn the script tagWhat it does
iconsdata-iconsShows the item's or spell's icon in front of the link.
colorLinksdata-color-linksColours item links in their quality colour (green, blue, purple, orange). On light pages the colours are darkened so they stay readable, and common items keep your own link colour.
renameLinksdata-rename-linksMakes the link text the item's or spell's name, so a pasted bare link reads "Shadowfang".

Set them in whichever way suits your site.

Phones, tablets and keyboards

Privacy

For developers

What to expect

If ForeverDB is slow or down, your links stay ordinary links. The script shows Loading..., gives up after a few seconds and tries again on the next hover.

Common problems

No tooltip appears

Check the link points to foreverdb.net/item/<id> or foreverdb.net/spell/<id> with a real ID, the script tag is on the page, and your Content-Security-Policy allows https://foreverdb.net. Links on Reddit, Discord and most forum posts cannot run scripts.

The demo says it could not load the script

Reload the page. The demo runs the real script from foreverdb.net.

The link text did not change to the item's name

Renaming is off unless you tick Rename links and use the updated snippet, or set data-rename-links="true".

A tooltip shows the wrong colour

With Quality colours on, common items keep your own link colour on purpose, and colours are darkened on light pages.

Related pages

All help topics