Media Wiki Configure Site Logo: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
Add to [[Media_Wiki_Concepts#LocalSettings.php|LocalSettings.php]]:
Add to [[Media_Wiki_Concepts#LocalSettings.php|LocalSettings.php]]:
<syntaxhighlight lang='php'>
<syntaxhighlight lang='php'>
$wgLogo = 'resources/assets/cat.png';
</syntaxhighlight>
</syntaxhighlight>
The value should be a relative path from DOCUMENT_ROOT.


⚠️ Do not simply overwrite the default logo installed with MediaWiki (/resources/assets/wiki.png); this file will automatically be overwritten when you upgrade and your changes will be lost.
⚠️ Do not simply overwrite the default logo installed with MediaWiki (/resources/assets/wiki.png); this file will automatically be overwritten when you upgrade and your changes will be lost.

Revision as of 05:49, 18 November 2021

External

Internal

Overview

Add to LocalSettings.php:

$wgLogo = 'resources/assets/cat.png';

The value should be a relative path from DOCUMENT_ROOT.

⚠️ Do not simply overwrite the default logo installed with MediaWiki (/resources/assets/wiki.png); this file will automatically be overwritten when you upgrade and your changes will be lost.