Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove the footer in MediaWiki?

I am trying to remove the footer in my MediaWiki installation

  • "This page was last modified..."
  • Number of views
  • Privacy policy link
  • MediaWiki image

I am using the Vector theme.

The instructions on the MediaWiki site don't seem to match the Vector theme, which appears to be the default one.

I can't find any of the $wg elements mentioned on the MediaWiki site (such as $wgHooks and $wgMaxCredits) in the Vector theme itself. So how can I modify the theme to remove the footer elements?

Any help or advice would be much appreciated. I am sure I am missing some part of the MediaWiki site, but can't seem to find it.

like image 695
user586011 Avatar asked Oct 21 '25 09:10

user586011


1 Answers

I'm not sure why you want to do that, but here are some thoughts:

The "This page was last modified..." message is constructed with the Lastmodifiedat interface message. So, if you edit MediaWiki:Lastmodifiedat in your wiki and remove any contents, the footer element will be empty (even if the li-element is still there!).

The number of views was removed in MediaWiki 1.25, so i suggest you upgrade your wiki and the count will be away automatically ;) If you don't want to upgrade or can't (for whatever reason) you can set $wgDisableCounters = false; in your LocalSettings.php.

The privacy, about and disclaimer link can be removed by replacing the appropriate interface messages with a dash "-". Just edit these pages on your wiki:

  • MediaWiki:Privacy
  • MediaWiki:Aboutsite
  • MediaWiki:Disclaimers

To remove the MediaWiki image, you just need to set this line in your LocalSettings.php: $wgFooterIcons['poweredby'] = array();

Btw.: You don't see most of the variables and interface messages in the Vector skin, because the footer is mostly generated in MediaWiki itself and the Skin simply handels how it is displayed, not what is displayed.

like image 144
Florian Avatar answered Oct 23 '25 21:10

Florian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!