Posts Tagged ‘change’

How to change the font color for the headings in MediaWiki?

1. Go to the page or section you wish to edit (using the links in the navigation menu to the left of the window).
2. Click on either the edit tab at the top of the window to edit the whole page or the [edit] link that appears at the right side of the window next to the heading of the section you wish to edit.
3. To change the colour of text, you need to use HTML font colour tags. The following example shows how to add green text to your page.

An example of green text
Note: The spelling of color is in American Language.
4. Click the Save page button below the text area.

How to change the font color for the content in MediaWiki?

In order to change the font color for the content in MediaWiki, you should edit the skin’s main.css file.

For example, if you are using the default Monobook skin, the file you should edit is:

/home/user/domains/domain_name/public_html/skins/monobook/main.css

Look for the following code:
#content {
background: white;
color: black;
border: 1px solid #aaa;
border-right: none;
line-height: 1.5em;

You should edit the color:black; line. For example, if you wish to change the font color to red, the line should be changed to:

color: red;

How to change the favicon in MediaWiki?

* Simply upload your favicon.ico to the root of your domain/subdomain, make sure file name is in lower case and its name is favicon.ico
* Alternatively edit the $wgFavicon setting in LocalSettings.php and add $wgFavicon = “$wgScriptPath/path/to/your/favicon.ico”;

See Manual:$wgFavicon for more details.

Tip: The favicon image should be either 16 x 16 pixels or 32 x 32 pixels.
Rewrite Rule

If you are using a rewrite rule in .htaccess to remove “index.php” from the URL, you will also need to add an exception for .ico files. Simply add the following rule to your .htaccess:

RewriteRule .*\.ico$ – [L]

This rule must appear before the index.php rule.
Case sensitivity

When uploading the favicon file, be sure the filename is in lowercase. (That is, “favicon.ico”, not “Favicon.ico”.) A lot of servers (e.g., those on UNIX-like operating systems) will not be able to find the file unless its name is in lowercase.

How to change the ‘Main Page’ title to something else?

The default name for the MediaWiki main page is Main Page.
You can change this by editing the MediaWiki:Mainpage page.
Go to: www.yourdomain.com/wiki/index.php?title=MediaWiki:Mainpage
and click the edit button to edit the page. Change Main Page to the new page name you wish to use and save the change.

How to change the default skin for guests in MediaWiki?

A default skin can be set for new users of a wiki by setting the variable $wgDefaultSkin in LocalSettings.php to the lowercase skin name specified in the skin file. Users can still change their skin later by going to their preferences page. To change all existing users’ skin settings, use the userOptions.php maintenance script. The syntax to use on the command line would be:

$ php userOptions.php skin –old –new

Example:

$ php userOptions.php skin –old “monobook” –new “modern”

How to change the language in MediaWiki?

To change the language in MediaWiki just locate localsettings.php using FTP client.
Find the line in this file: $wgLanguageCode = “en”;
Then change the “en” to the appropriate language code for your language.