MediaWiki

From Informatics

Jump to: navigation, search

C2B2 Wiki FAQ

Q1: How do I change the background color?
A1: I added the following to /var/www/html/<site-name>/skins/common/common.css

 body {
   font: x-small sans-serif;
   background: #C0C0C0 url(headbg.jpg) 0 0 no-repeat;
   color: black;
   margin: 0;
   padding: 0;
 }

Caution!

Before you make any change, first remove the symlink to common.css and then copy the common.css file from the main installation directory to the directory where you deleted the symlink. Otherwise, your changes will not be local, but will carry through to every other lab wiki.
 > rm common.css
 > cp /opt/mediawiki/skins/common/common.css .

Note: The #C0C0C0 is hexadecimal notation for the color light-grey.

Personal tools