This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Question on using Wowhead tooltips
Post Reply
Return to board index
Post by
Niaw
This may not be the correct place but it's the closest forum topic I could find.
I have a question about using Wowhead tooltips on my external site, i.e.:
http://www.wowhead.com/tooltips
Is there a trick to force specific Wowhead links to NOT be coloured, while still allowing the rest to be coloured?
In my case, my site has a white background. If I link white-quality items, then the Wowhead js code ends up making them white on white and hence invisible. So I'd like to prevent recolouring of specific links.
Post by
Stiven
Hey Niaw,
Can you try to put this in ur site css code:
a.q1 { font-weight: bold; color: #DB9760 !important; }
a.q2 { font-weight: bold; color: #00ca00 !important; }
a.q3 { font-weight: bold; color: #0070dd !important; }
a.q4 { font-weight: bold; color: #a335ee !important; }
a.q5 { font-weight: bold; color: #ff8000 !important; }
a.q6 { font-weight: bold; color: #FF4040 !important; }
Just change the colors u prefer for each item quality
As I see you probably have problem with q1 since it is white colored?
Post by
Erorus
Stiven, I think the Wowhead CSS already uses !important for the color classes, so it might not override like you expect.
Post by
Stiven
That's what I use on adriacraft.net, and it works for me.
http://www.adriacraft.net/warcraft/test-wowhead-tooltips-201708296854/
Post by
Erorus
Ah, nice. Wasn't working in the debugger for me on
the demo page
. Maybe the extra "a.q1" vs just ".q1" is enough to boost its priority.
Post by
Niaw
That worked perfectly! Thank you very much :)
I did try .q1 previously and it failed. I think, like Erorus, I was just using .q1 rather than a.q1. The latter seems to be important.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.