Community Central

Admin Forum:Colour of external links

19,241pages on
this wiki
Add New Page
Talk0 Share

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 1404 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

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki