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 (primarily custom skins). Thus, it may be feasible to remove the footer icon. Depending on the version of Semantic MediaWiki you are usin,g there are different approaches to do so:

Add the following code to your ...

Semantic MediaWiki >= 6.x1

... "LocalSettings.php" file:

$wgFooterIcons['poweredbysmw']['semanticmediawiki'] = false;
Semantic MediaWiki 2.3.x to 5.1.0

... "LocalSettings.php" file:

$wgFooterIcons['poweredby']['semanticmediawiki'] = false;
Semantic MediaWiki 1.9.x to 2.2.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;
}

References

  1. ^  Semantic MediaWiki: GitHub commit gh:smw:6dd9091