(I tried on two different wikis)
My common.js page and my global.css page works perfectly, though.
Any idea what the problem is?
(I tried on two different wikis)
My common.js page and my global.css page works perfectly, though.
Any idea what the problem is?
I guess you're referring to the Keeper of the Lost Cities and Experimental Coding wikis. Here are the errors about them as far as I can tell:
In the Keeper of the Lost Cities wiki, you can't use !important
after the code block- it must be specified after each individual property value. Tho it looks like the css works even without using !important
, at least on a first glance.
In the Experimental Coding wiki, !important!
needs to be placed before the semicolon- otherwise it merges with the next CSS property name (like !important background-color
) so the browser counts it as an invalid css. Try moving it like this:
a[href$=":HumansCanWinElves"], a[href$="/HumansCanWinElves"] { color: white !important; background-color: blue !important; font-weight: bold !important; }
Oh Thank you for pointing those out! I'll go through my codes now.
Well, it is working now on the lost-cities wiki, but does not work on the experimental coding wiki (even though I copy-pasted the working code) or on the community central...
Try also removing the !important
keywords from the last 2 blocks of CSS from your global.css, at the very bottom- perhaps this is what's affecting it (also the .Nam
part is missing semicolons after each line).
Other than that, it doesn't seem like the wiki's common.css has anything that can override it. So try updating your global.css and if it doesn't work, clear your cache just to be sure. if this still happens, try opening your console to see if Wikia's throwing any error messages, or inspect the links to your userpage to see if there's any other css code that might override the custom one.
Deleting all the code from my global.css seems to help :)
I guess I'll try to bring parts back step by step. Self-learning has its issues but it's fun.
I wonder why a specific wiki could bypass the problem before.
But anyway, thank you for your help!