Title: Juiz Lang Attribute
Author: Geoffrey
Published: <strong>Mata 27, 2019</strong>
Last modified: Ukuboza 28, 2024

---

Search plugins

![](https://ps.w.org/juiz-lang-attributes/assets/banner-772x250.png?rev=2075869)

![](https://ps.w.org/juiz-lang-attributes/assets/icon-256x256.png?rev=2075869)

# Juiz Lang Attribute

 By [Geoffrey](https://profiles.wordpress.org/creativejuiz/)

[Download](https://downloads.wordpress.org/plugin/juiz-lang-attributes.zip)

 * [Details](https://kin.wordpress.org/plugins/juiz-lang-attributes/#description)
 * [Reviews](https://kin.wordpress.org/plugins/juiz-lang-attributes/#reviews)
 *  [Installation](https://kin.wordpress.org/plugins/juiz-lang-attributes/#installation)
 * [Development](https://kin.wordpress.org/plugins/juiz-lang-attributes/#developers)

 [Support](https://wordpress.org/support/plugin/juiz-lang-attributes/)

## Description

To improve your SEO and the accessibility of your content, you must declare changes
of language within your content.
 You must also declare translations of your pages
to Google to avoid duplicate content.

TinyMCE: For the people still in this old editor, buttons are available to add `
lang` and `hreflang` attributes on your content, therefore to improve accessibility
when screen readers are reading words from different languages than your main page
language.

Gutenberg: For Gutenberg users, WordPress already provide the “Language” menu. When
selecting a text you can add a specific language. This plugin will enhance this 
behaviour with its own command, and by remembering the last language code you used.

This plugin also comes with a hreflang option that you can put on links to tell 
users “this link lead to a French website” for example.

**Example of cases you need this plugin:**

 * You translated a blog post in your language from another blog, (hreflang alternate
   links)
 * You publish the same article in 2 languages on 2 different websites, (hreflang
   alternate links)
 * You use in your content a jargon from another language. (`lang` attribute)
 * You link from your post other posts in another language. (`hreflang` attribute)
 * Your Menus have some items not translated (`lang` attributes) or lead to page
   in another language (`hreflang`), you can edit those attributes in the Menus 
   admin-menu. (**WordPress 5.4** compatibility) If you have a FSE (Full Site Editing)
   theme, I don’t know how this will work for you, but you can use the Gutenberg
   commands this plugin put at your disposal.

### Features available

 * Custom `hreflang` alternate links for posts (page, and custom posts)
 * Attributes `hreflang` and `lang` available and visible in the editor
 * Attributes `hreflang` and `lang` available on your main Menus items. (**WordPress
   5.4** compatibility)

### Known bugs

In old version of Gutenberg, the `hreflang` attribute on links is applied, but never
save it in database. That is because `hreflang` is cleaned from WordPress posts.
Indeed, it was not well recognized by the WordPress post sanitizing function.

**You can donate to support**

 * [Donate what you want with Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=P39NJPCWVXGDY&lc=FR&item_name=Juiz%20Lang%20Attributes2d%20WP%20Plugin&item_number=%23wp%2djla&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)

**Please, use the support forum to tell me bugs encountered, and be patient**

### Other plugins

**[Juiz Social Post Sharer](https://wordpress.org/plugins/juiz-social-post-sharer/)**:
if you need social buttons.
 **[Juiz Outdated Post Message](https://fr.wordpress.org/plugins/juiz-outdated-post-message/)**:
if you want to put a warning on old post on your blog. **[Embed Can I Use](https://wordpress.org/plugins/embed-can-i-use/)**:
if you talk about support of HTML 5, CSS3 or JS API, you need to embed Can I Use
support tables. **[Social integration for BlueSky](https://wordpress.org/plugins/social-integration-for-bluesky/)**:
Add a Profile Banner, a list of your recent BlueSky Posts, or an auto syndication
on BlueSky with this plugin.

## Screenshots

 * [[
 * Metabox for post
 * [[
 * TinyMCE with new buttons
 * [[
 * Attributes well placed on your HTML
 * [[
 * Attributes in the Appearance > Menus > Item link details
 * [[
 * Gutenberg options

## Installation

You can use one of both method :

**Installation via your WordPress website**

 1. Go to the **admin menu ‘Plugins’ -> ‘Install’** and **search** for ‘Juiz Lang Attributes’
 2. **Click** ‘install’ and **activate it**
 3. (optional) Configure the Plugin in **Settings**

**Manual Installation**

 1. **Download** the plugin (it’s better :p)
 2. **Unzip** `juiz-lang-attributes` folder to the `/wp-content/plugins/` directory
 3. **Activate the plugin** through the ‘Plugins’ menu in WordPress
 4. It’s finished !

## FAQ

 * **My editor (classic editor) doesn’t display the buttons. Why?**
    It happens 
   sometimes when you alreay have another plugin that does dirty things with your
   editor. I can’t control it anyway. Try to deactivate the dirty plugin to be sure
   it comes for it and see if the Juiz Lang Attributes buttons appear.

## Reviews

![](https://secure.gravatar.com/avatar/5dda751809c1cb333e7fc84e71b8f7ec241e4cc625a447184a91ad37fac52894?
s=60&d=retro&r=g)

### 󠀁[Doesn’t work](https://wordpress.org/support/topic/doesnt-work-3205/)󠁿

 [operator5](https://profiles.wordpress.org/operator5/) Werurwe 13, 2025

Nothing in the code changes. Still the “original” language.

![](https://secure.gravatar.com/avatar/40ae6879651f61374e726bdc09cfba6c28fe8878e241ce47bf175736200ed162?
s=60&d=retro&r=g)

### 󠀁[Отличная идея, но не работает на моём сайте](https://wordpress.org/support/topic/%d0%be%d1%82%d0%bb%d0%b8%d1%87%d0%bd%d0%b0%d1%8f-%d0%b8%d0%b4%d0%b5%d1%8f-%d0%bd%d0%be-%d0%bd%d0%b5-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0%d0%b5%d1%82-%d0%bd%d0%b0-%d0%bc%d0%be%d1%91%d0%bc-%d1%81%d0%b0/)󠁿

 [kingspreference](https://profiles.wordpress.org/kingspreference/) Ugushyingo 3,
2022

Установила плагин, всё как я хотела. Индивидуальные настройки на каждой записи, 
рубрике… НО… По факту – никаких изменений в коде. Не знаю почему, но к сожалению
пришлось удалить.

![](https://secure.gravatar.com/avatar/2f407f7b9bf7222988a1fdf466b3890e5038c20b05419163545a2507a24aed66?
s=60&d=retro&r=g)

### 󠀁[Does not work](https://wordpress.org/support/topic/does-not-work-1312/)󠁿

 [inuya5ha](https://profiles.wordpress.org/inuya5ha/) Werurwe 1, 2021 1 reply

No hreflang attribute is being added to the entire HTML source code for any page.

![](https://secure.gravatar.com/avatar/13e49fbf0f725a71165b8f3b0184e5d4e39a0203fc34e866aea7787bf7e325e5?
s=60&d=retro&r=g)

### 󠀁[Amazing Plugin!!!](https://wordpress.org/support/topic/amazing-plugin-1589/)󠁿

 [azul87](https://profiles.wordpress.org/azul87/) Kanama 26, 2020

This plugin works well, thank you for making it.

 [ Read all 4 reviews ](https://wordpress.org/support/plugin/juiz-lang-attributes/reviews/)

## Contributors & Developers

“Juiz Lang Attribute” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Geoffrey ](https://profiles.wordpress.org/creativejuiz/)

[Translate “Juiz Lang Attribute” into your language.](https://translate.wordpress.org/projects/wp-plugins/juiz-lang-attributes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/juiz-lang-attributes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/juiz-lang-attributes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/juiz-lang-attributes/)
by [RSS](https://plugins.trac.wordpress.org/log/juiz-lang-attributes/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3.1

 * **Bug Fix**
    - Hreflang attributes are now saved on links with Gutenberg
 * Tested on WordPress 6.7.1
 * Adds the `alternate` named `x-default` to your head section when using the `hreflang`
   alternative URL metabox.

#### 1.3.0

 * **Bug Fix**
    - Styles wouldn’t display on Gutenberg.
 * **Features**
    - Unfortunately it’s buggy: hreflang button available for links, but database
      wouldn’t keep it saved.

#### 1.2.0

 * **Bug fix**
    - Empty link tag on the header
 * **Features**
    - Remove link x-default to avoid errors (better none than bad one)
    - NEW: add hreflang and href to Menu Items

#### 1.1.2

 * Bug: Fix JS Bug on TinyMCE Editor for both LANG and HREFLANG
 * UX Improvement: keep your last value for HREFLANG or LANG, saving time while 
   editing long posts.

#### 1.1.1

 * Bug: Fix fatal error on first installation.
 * Security: Fix XSS Issue. (Thank you [Julio Potier](https://boiteaweb.fr/) – [SecuPress](https://secupress.me))

#### 1.1.0

 * Feature: Gutenberg Editor Support for lang attribute.
 * Cleaning-up: Useless files removed.

#### 1.0.2

 * Improvement: Show the attributes in the editor while hovering or focusing them.(
   when the element is focusable)

#### 1.0.1

 * Features:
    - Style the buttons as activated when the cursor is on an element with hreflang
      or lang attribute.
    - Remove the attributes when click again on the button while the attribute is
      already set.

#### 1.0.0

 * Initial: Try it 😉

## Meta

 *  Version **1.3.1**
 *  Last updated **1 year ago**
 *  Active installations **1,000+**
 *  WordPress version ** 4.5 or higher **
 *  Tested up to **6.7.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/juiz-lang-attributes/)
 * Tags
 * [alternate](https://kin.wordpress.org/plugins/tags/alternate/)[attribute](https://kin.wordpress.org/plugins/tags/attribute/)
   [hreflang](https://kin.wordpress.org/plugins/tags/hreflang/)[lang](https://kin.wordpress.org/plugins/tags/lang/)
   [seo](https://kin.wordpress.org/plugins/tags/seo/)
 *  [Advanced View](https://kin.wordpress.org/plugins/juiz-lang-attributes/advanced/)

## Ratings

 2.5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/juiz-lang-attributes/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/juiz-lang-attributes/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/juiz-lang-attributes/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/juiz-lang-attributes/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/juiz-lang-attributes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/juiz-lang-attributes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/juiz-lang-attributes/reviews/)

## Contributors

 *   [ Geoffrey ](https://profiles.wordpress.org/creativejuiz/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/juiz-lang-attributes/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=P39NJPCWVXGDY&lc=FR&item_name=Juiz%20Lang%20Attributes2d%20WP%20Plugin&item_number=%23wp%2djla&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)