Custom Styling: Difference between revisions

From Tweeki
Jump to: navigation, search
No edit summary
No edit summary
Line 9: Line 9:
$wgResourceModules['xxx'] = [
$wgResourceModules['xxx'] = [
     'styles' => 'styles.css',
     'styles' => 'styles.css',
     'localBasePath' => 'extensions/Test',
     'localBasePath' => '.',
     'remoteExtPath' => 'Test',
     'remoteExtPath' => '',
     'position' => 'top'
     'position' => 'top'
];
];
</pre>
</pre>

Revision as of 15:53, 18 February 2019

As usual you have several options to add custom CSS to your MediaWiki installation (see also the manual pages on mediawiki.org):

  • via Mediawiki:Common.css: be aware that it is not used for the login and preferences pages (you can, hower, allow it if you don't care for the security implications)
  • via your own extension


$wgResourceModules['xxx'] = [
    'styles' => 'styles.css',
    'localBasePath' => '.',
    'remoteExtPath' => '',
    'position' => 'top'
];