How to modify MediaWiki logo url
From FVue
Problem
I want to change to url of the MediaWiki logo.
Solution
Apply these differences to ./skins/MonoBook.php
:
$> diff -u MonoBook.orig.php MonoBook.php --- MonoBook.orig.php 2007-09-08 22:58:54.000000000 +0200 +++ MonoBook.php 2007-09-08 23:03:48.000000000 +0200 @@ -143,9 +143,8 @@ </div> </div> <div class="portlet" id="p-logo"> - <a style="background-image: url(<?php $this->text('logopath') ?>);" <?php - ?>href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"<?php - echo $skin->tooltipAndAccesskey('n-mainpage') ?>></a> + <a style="background-image: url(<?php $this->text('logopath') ?>);" + href="/wiki/FVue:About" title="FVue:About"></a> </div> <script type="<?php $this->text('jsmimetype') ?>"> if (window.isMSIE55) fixalpha(); </script> <?php foreach ($this->data['sidebar'] as $bar => $cont) { ?>
See also
- Manual:FAQ - MediaWiki: How do I customize the URL of the logo in the top left corner when you click it?
- It's in the MediaWiki FAQ
Journal
20070908
Upgraded to MediaWiki-1.11.0rc1
Advertisement