跳到内容

Juiz Lang Attribute

v1.3.1

Geoffrey · 2019年4月27日 上架

Add a custom HREFLANG meta box on your post to manually edit the link between your post and a translation (which could be outside your domain).

正在使用
1,000+
评分
2.5 / 5
累计下载
7,009
最近更新
2024年12月29日
4 条评价需要 WordPress 4.5+已测试到 6.7.12

贡献者

截图

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

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

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

Other plugins

Juiz Social Post Sharer: if you need social buttons.
Juiz Outdated Post Message: if you want to put a warning on old post on your blog.
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: Add a Profile Banner, a list of your recent BlueSky Posts, or an auto syndication on BlueSky with this plugin.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums