Extension:AddBodyClass/en
![]() | This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() Release status: unmaintainedCategory:Unmaintained extensions/en |
|
---|---|
Implementation | Parser functionCategory:Parser function extensions/en |
Description | Allows adding custom classes to the HTML <body> tag |
Author(s) | Povilas Kanapickas, Will Stott |
Latest version | 1.2.0 (2016-03-21) |
MediaWiki | 1.18Category:Extensions with manual MediaWiki version |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | GitHub: Note: README |
The AddBodyClass extension allows adding custom classes to the HTML <body> tag.
Usage
{{#addbodyclass:your_class}}
This will append 'your_class' to the contents of the 'class' attribute of <body> class. You can append multiple classes using:
{{#addbodyclass:your_class1 your_class2 your_class3}}
Installation
- Download and place the file(s) in a directory called
AddBodyClass
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
require_once "$IP/extensions/AddBodyClass/AddBodyClass.php";
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.Category:Extensions not using extension registration/en
Category:All extensions/en
Category:Extensions in GitHub version control/en
Category:Extensions not in ExtensionJson
Category:Extensions not using extension registration/en
Category:Extensions with manual MediaWiki version
Category:GPL licensed extensions/en
Category:OutputPageBeforeHTML extensions/en
Category:OutputPageBodyAttributes extensions/en
Category:ParserFirstCallInit extensions/en
Category:Parser function extensions/en
Category:Unmaintained extensions/en