WordPress plugin
Add Locale Class
Render CSS According to a Site's Current Language
- Version
- 1.0.5
- Last updated
- Nov 7, 2023
- Tested up to
- WordPress 6.4.15
- Requires
- WP 2.8
Health check
Is Add Locale Class safe to rely on?
Our reading of the public WordPress.org data: maintenance, compatibility, ratings and support.
No update in over a year
Last updated on November 7, 2023. It may not be compatible with current WordPress or PHP, and unfixed issues are a security risk.
Not yet tested with the latest WordPress
Tested up to WordPress 6.4.15. It often still works, but check on staging first.
Rank tracker
Where Add Locale Class ranks in WordPress.org search
Its position in WordPress.org plugin search for its tags and name, refreshed weekly so you can see how its visibility changes.
| Keyword | Position | Change | Trend | Current #1 |
|---|---|---|---|---|
| css language class | ||||
| language class | ||||
| render css acording to language setting | ||||
| add locale class |
Checked against the top 100 WordPress.org search results.
Overview
What Add Locale Class does
On multi language sites there may be occasions when you want to render CSS according to the current language in use. The Add Local Class plugin solves this problem by adding the current language code as a class in the body tag on both front end and admin pages.
For example, if you set the language of the site to French, then the language code used is fr_FR. Add Local Class will retrieve the language code format it as ‘locale-fr-fr’ and add it to the body tags on the front end of the site. It will also retrieve the language code of the backend user and set it as a body tag class on the back end of the site. Should the site’s language be changed to U.S. English, then the class would be changed to ‘locale-en-us’.
In your CSS file you can have one rule for French and another for English:
With the Add Local Class plugin it possible to make use of language specific CSS on your site.
This plugin does not have a settings page. You simple install and activate it.
The Add Local Class plugin is brought to you by Max Foundry. We make a WordPress Gallery plugin, a plugin for WordPress media library folders and MaxButtons.
Description from the author's listing. Read the full listing on WordPress.org
FAQ
Add Locale Class: questions and answers
What is Add Locale Class?
Add Locale Class is a WordPress plugin by AlanP57. Render CSS According to a Site's Current Language
Is Add Locale Class free?
Add Locale Class is listed in the WordPress.org plugin directory, so the version there is free to download and use. Some authors also sell paid add-ons or a premium edition with more features and support.
Is Add Locale Class still maintained?
Add Locale Class was last updated on November 7, 2023. The current version is 1.0.5. Check the changelog on WordPress.org and test updates on a staging site before applying them to a live site.
What does Add Locale Class require?
Add Locale Class requires WordPress 2.8 or newer. It has been tested up to WordPress 6.4.15.
Can Codefreex set up or customize Add Locale Class?
Yes. Codefreex installs, configures and customizes WordPress plugins including Add Locale Class, fixes conflicts and performance problems, and builds custom features when a plugin does not do exactly what you need. Send your site URL for a free review.
Free expert review
Need Add Locale Class set up, customized or fixed?
Tell us about your site and what you need this plugin to do. A senior WordPress developer replies within one business day with a plan and a quote.