Wikia

Community Central

Admin Forum:Colour of external links

18,700pages on
this wiki
Talk0

This Forum has been archived

Forums: Admin Central Index Technical Help Colour of external links
Wikia'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 1302 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*="PREFIX.wikia.com"],
#WikiaArticle a[href*="PREFIX.wikia.com"] {
  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

Around Wikia's network

Random Wiki