Community Central
Community Central
Forums: Index Help desk Changing default link colors on all pages with CSS
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Archive
Note: This topic has been unedited for 5473 days. It is considered archived - the discussion is over. Information in this thread may be out of date. Do not add to unless it really needs a response.


Hi all, I'm trying to change the default link colors on my wikia. I have extremely basic knowledge of CSS, I know the gist of how it works but I'm not that great with it (hence this topic). I tried editing the common css page with the standard css link definitions (a:link, etc), but it didn't seem to alter the page. Looking at a page's source shows that the main content isn't even contained within a div, and there's no css include before the content, so I'm not sure how this is possible? Also, how do you define the color of links that do not have articles yet (default red)?

Thanks. —This unsigned comment is by Reiker (wallcontribs). Please sign your comments by adding "~~~~" in the source editor.

A link so your stylesheet/wiki would help.. The common CSS is externally linked to, so it doesn't appear in your source (look in the head tags).
Dead links have the class 'new' which can be styled like so:
.new { color:red;font-weight:bold; }
...or more specifically
a.new { color:red;font-weight:bold; }
Could you give a link or sample code? -- Sixorish 16:23, 19 April 2009 (UTC)
You would usually find some of the CSS used by your wiki at the following places:
  • wikiname.wikia.com/wiki/MediaWiki:common.css
  • wikiname.wikia.com/wiki/MediaWiki:monaco.css
  • or maybe wikiname.wikia.com/wiki/MediaWiki:monobook.css
NOTE: Some wikis (like WoWWiki) don't use the /wiki/ part.
You can override CSS as a subpage of your user page at User:username/common.css or User:username/monaco.css. This is a good way to test CSS changes without mucking up the whole site.
I forget how you construct them, but you can also make a URL that will load CSS for use with only that specific link, similar to the way the skin previews work. -- Fandyllic (talk · contr) 5:16 PM PST 24 Apr 2009