Book Image

MediaWiki Skins Design

Book Image

MediaWiki Skins Design

Overview of this book

Table of Contents (16 chapters)
MediaWiki Skins Design
Credits
About the Author
About the Reviewer
Preface

Changing the Logo


One of the most obvious things that can be done to alter the appearance of your wiki is to change the logo. The following ways can be used to achieve this in MediaWiki:

  • Changing the logo image located at skins/common/images/wiki.png

  • Changing the $wgLogo parameter in the LocalSettings.php file (in the root directory of your MediaWiki installation)

  • Adding the relevant XHTML to your skin's PHP file (for example, skins/ JazzMeet.php)

The Logo File

In MonoBook, the logo is not inserted as an <img> element directly in to the XHTML. It is set as a background image through the use of inline CSS.

<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>
</div>

The default size for logo images is 135 pixels by 135 pixels. This is...