From MediaWiki.org
(Redirected from Extension:AddBodyTags)
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png

Release status: stable

Implementation Parser function
Description Allows to add custom classes to the HTML <body> tag
Author(s) Povilas Kanapickas (P12talk)
Latest version 1.1 (2013-04-25)
MediaWiki 1.18 - 1.21
Database changes No
License GNU General Public License 2.0 or later
Hooks used


Translate the AddBodyClass extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

The AddBodyClass extension allows to add custom classes to the HTML <body> tag.

Usage[edit | edit source]


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[edit | edit source]

vagrant>VagrantMediaWiki-Vagrant</>, install with <tvar

  • <translate>

1>download-link</> and place the file(s) in a directory called <tvar|name>AddBodyClass</> in your <tvar|ext>extensions/</> folder.</translate>

  • <translate>

Add the following code at the bottom of your LocalSettings.php:</translate>

require_once "$IP/extensions/AddBodyClass/AddBodyClass.php";
  • YesY Done - <translate>

Navigate to <tvar|special>Special:Version</> on your wiki to verify that the extension is successfully installed.</translate>