This Forum has been archived

Forums: Admin Central Index Technical Help Colour of external links
Central's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 2638 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

Hello. I'm an admin on a fan labour wiki that has naturally got lots of links to the sister/parent wiki. Right now, all links (internal, interwiki, external) have the same colour. I've done some research but am very much a beginner when it comes to CSS. Is it correct that I can change the link colours by adding

/* link colors */
link.interwiki { color: #4333BA; }
link.external { color: #3366BB; }

to MediaWiki:Common.css? And is there a way to specify a colour for a link to a specific wiki only (the sister wiki in our case)? --Tulipclaymore 02:55, October 19, 2011 (UTC)

There is a way of speciying color for a particular wiki. Just use the following code:
/* Interwiki Link Colour */
#bodyContent a[href*=""],
#WikiaArticle a[href*=""] {
  color: #006E94 !important;
Just change PREFIX and the color code to the ones you want.    ǝsʞpɐןǝ  (message wall)  06:01, 19/10/2011
Yup, that works. Thanks! --Tulipclaymore 07:08, October 19, 2011 (UTC)
Tagging {{FAQ}}. -- Fandyllic (talk · contr) 20 Oct 2011 2:21 PM Pacific
Community content is available under CC-BY-SA unless otherwise noted.