Jump to content

Manual talk:Hooks/SkinAddFooterLinks

About this board

Jonathan3 (talkcontribs)
Reply to "Example code"

How would I go about adding a footer link in the Vector skin?

2
Shaen4Ko (talkcontribs)

Adding the current example code to LocalSettings.php yields errors in Mediawiki 1.35.

Shaen4Ko (talkcontribs)

To make it work in LocalSettings.php you have to use $wgHooks:

$wgHooks['SkinAddFooterLinks'][] = function( $skin, $key, &$footerlinks ) {
       if ( $key === 'places' ) {
               $footerlinks['test1'] = '<A href=#>Test Link 1</a>';
               $footerlinks['test2'] = '<A href=#>Test Link 2</a>';
       }
};
There are no older topics