Media Wiki Configure Site Logo

From NovaOrdis Knowledge Base
Revision as of 19:06, 29 December 2023 by Ovidiu (talk | contribs) (→‎Internal)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Overview

Add to LocalSettings.php:

$wgLogos = [
 '1x' => "resources/assets/cat.png",		// path to 1x version
	'1.5x' => "path/to/1.5x_version.png",	// Optional, path to 1.5x version
	'2x' => "path/to/2x_version.png",	// Optional, path to 2x version
	'svg' => "path/to/svg_version.svg",	// Optional, path to svg version
	'icon' => "path/to/icon.png",		// Optional, A version of the logo without wordmark and tagline
	'wordmark' => [
		'src' => "path/to/wordmark_version.png", // Optional, path to wordmark version
		'1x' => "path/to/wordmark_version.svg",	 // optional if you want to support browsers with SVG support with an SVG logo.
		'width' => 135,
		'height' => 20,
	],
	'tagline' => [
		'src' => "path/to/tagline_version.png",	 // Optional, path to tagline version
		'width' => 135,
		'height' => 15,
	],
];

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.