Manual talk:$wgFooterIcons

Jump to navigation Jump to search

About this board

Semmelrocks (talkcontribs)

I use Version 1.34.1 and the wiki says An absolute url to the image to use for the icon, this is recommended but not required, but absolute does not mean an foreign/remote url here. It works for me only, if I have this icon on the server. I tried to use a remote one, because my hoster offers some icons (for sponsoring).

Ciencia Al Poder (talkcontribs)

What error do you get? What's the generated URL of the icon? Maybe the external host doesn't allow hotlinking.

Semmelrocks (talkcontribs)

The "error" is, it doesn't show anything. My hoster offers hotlinking explicit via c&p source code for including. What do you mean with 'generated URL' ?

Ciencia Al Poder (talkcontribs)

You'll have to inspect the HTML where the icon is supposed to be present (but it doesn't display for you) and see what's the URL it points to, or if there's no icon URL at all.... Open that URL on your browser and see if the image gets displayed or you see an error instead...

Semmelrocks (talkcontribs)

The img-URL is accessable direcly in the browser. If I use the FF-tool 'analyse item' and I hover the 'img scr' it says 'Couldn't load graphic'. So I can't find any concrete problem.

Ciencia Al Poder (talkcontribs)

You can look at the network tab of the developer console and see what's the server response for that particular URL when requested from the page.

Semmelrocks (talkcontribs)

Thanks for the decisive hint! It doesn't show the icon due to my AdBlocker!

Kghbln (talkcontribs)

This is not documented and acutally I cannot find this parameter in the codebase either but it works:

$wgFooterIcons['poweredby']['exampleorg'] = [
    'src' => "$wgScriptPath/images/badge.png",
    'url' => '',
    'alt' => 'Example Organization',
    'style' => 'margin-left: 5px;'

Perhaps this is useful to know for others, too.

Reply to "'style' parameter"

The place to do this is in LocalSettings.php

Scarykitty (talkcontribs)

I was trying to add an icon to my footer and could not figure it out for multiple hours, so in case it will help someone else, I am making a note here. The place to add this is in LocalSettings.php.

Samrao79 (talkcontribs)

What do I add exactly? I tried adding at the bottom of the local settings but the logo just disappears:

$wgFooterIcons = [

"copyright" => [

"copyright" => [], // placeholder for the built in copyright icon


"poweredby" => [

"Magentrix" => [

// Defaults to point at

// "$wgResourceBasePath/resources/assets/poweredby_mediawiki_176x62.png"

// plus srcset for 1.5x, 2x resolution variants.

"src" => null,

"url" => "",

"alt" => "Powered by MediaWiki",




Ciencia Al Poder (talkcontribs)
Reply to "The place to do this is in LocalSettings.php" (talkcontribs)

From 1.27.0 it may not be ideal to use unset unset( $wgFooterIcons['copyright'] ); to disable CopyrightIcon. It may cause PHP Notice:  Undefined index: copyright in /usr/share/webapps/mediawiki/includes/skins/Skin.php on line 783.

Workaround: Do not unset $wgFooterIcons['copyright'], leave it as it is.

Set $wgRightsIcon to null value (default).

Ciencia Al Poder (talkcontribs)

Ok, I've changed that

Deletedaccount4567435 (talkcontribs)

same error in MW 1.28.0. & set $wgRightsIcon to null value (default) does not work for me

Deletedaccount4567435 (talkcontribs)

Seems to related to extension pageimages. Once I disable this extension when $wgRightsIcon to null value, error message disappear.

Ciencia Al Poder (talkcontribs)

It's strange because nothing in the code of Extension:PageImages references $wgFooterIcons. Maybe your first change to LocalSettings.php where you set it to null instead of unset wasn't actually saved?

Deletedaccount4567435 (talkcontribs)

Retest this problem with no extensions and all cache disabled. Confirmed that Extension:PageImages do no effect on Undefined index error.

The previous problem might caused by cache....

Reply to "Re: Disabling icons"
Bmrberlin (talkcontribs)

After upgrading to this version, the text is still to be seen, but the icon is not found any more. Please asssist

Reply to "German Mediawiki 1.24.2"
Varlin (talkcontribs)

Hi, I can add some text in the footer by adding this to LocalSettings :

$wgFooterIcons['block'] = array('my text here');

But I can't manage to insert a Mediawiki variable like SiteStats::articles() ... It's probably due to my lack of PHP skills ! What's the easy way to do that ? Thanks

Reply to "Add some Mediawiki variable"

key-string of the Semantic Media Wiki icon

G.Hagedorn (talkcontribs)

I checked the code for SMW, but it uses the $tpl->set( 'poweredbyico'... method. Is it still possible to override this here? What is the key-string to access it?

Dantman (talkcontribs)
G.Hagedorn (talkcontribs)

True for trunk, I forgot to mention that I checked our 1.18 version. But will wait thus wait until we can update to 1.20. Many thanks! G.Hagedorn (talk) 20:19, 23 August 2012 (UTC)

G.Hagedorn (talkcontribs)

PS: Key for the icon is then ['poweredby']['semanticmediawiki']

Reply to "key-string of the Semantic Media Wiki icon"
There are no older topics