이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Add Locale Class

설명

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:

. locale-fr-fr .button {
background-color: blue;
}

. locale-en-us .button {
background-color: red;
}

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.

설치

Upload and unzip the plugin in your Plugins folder. Go to your Plugins page and activate Add Local Class.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Add Locale Class”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Add Locale Class”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.5

  • Tested with WordPress 6.4

1.0.4

  • Tested with WordPress 6.1

1.0.3

  • Tested with WordPress 5.9.3

1.0.2

  • Tested with WordPress 5.5

1.0.1

  • Added test for classes as an array

1.0.0

  • Initial Release