Help:Remove the footer icon added by Semantic MediaWiki

From semantic-mediawiki.org
Semantic extension(s): Semantic MediaWiki
Further extension(s):  -/-
Keyword(s): footer · footer icon · powered by

Description:

Semantic MediaWiki by default adds a "powered by" icon to the footer bar of your wiki. Sometimes this does not really fit nicely into the display by the skin used (mostly custom skins). Thus it may be feasible to remove the footer icon. Depending on the version of Semantic MediaWiki you are using there different approaches to do so:

Add the following code to your ...

Semantic MediaWiki >= 2.3.x and MediaWiki >= 1.17.x

... "LocalSettings.php" file:

$wgFooterIcons['poweredby']['semanticmediawiki'] = false;
Semantic MediaWiki 1.9.x to 2.2.x and MediaWiki >= 1.17.x

... "MediaWiki:Commons.css" page:

#f-poweredbyico {
	display: none !important;
}

NoteNote:  This also removes the "powered by MediaWiki" icon.

Semantic MediaWiki <= 1.8.x and MediaWiki >= 1.17.x

... "LocalSettings.php" file:

unset( $wgFooterIcons['poweredby']['semanticmediawiki'] );
Semantic MediaWiki <= 1.8.x and MediaWiki <= 1.16.x

... "LocalSettings.php" file:

$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfRemovePoweredBy';
function lfRemovePoweredBy( $sk, &$tpl ) {
	unset( $this->data['poweredbyico']['semanticmediawiki'] );
	return true;
}