這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Juiz Lang Attribute

外掛說明

To improve your SEO and the accessibility of your content, you are supposed to announce translations of your pages to Google to avoid duplicate content.
The Editor button to add lang and hreflang attributes on your content are here to improve accessibility when screen readers are passing on words from different languages than your main language.

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 (langattributes) or lead to page in another language (hreflang), you can edit those attributes in the Menus admin-menu. (WordPress 5.4 compatibility)

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)

Know bugs, if you can help with code 😉

  • Gutenberg apply hreflang attribute on links, but never save it in database.

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.

螢幕擷圖

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

安裝方式

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 !

常見問題集

  • 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 him anyway. Try to deactivate the dirty plugin to be sure it comes for it and see if the Juiz Lang Attributes buttons appear.

  • My editor (Gutenberg) doesn’t display the buttons. Why?
    For the moment I don’t support Gutenberg editor. Working on a way to support it.
    Thanks.

使用者評論

2021 年 3 月 1 日 1 則留言
No hreflang attribute is being added to the entire HTML source code for any page.
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Juiz Lang Attribute〉的開發相關工作。

參與者

將〈Juiz Lang Attribute〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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 PotierSecuPress)

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 😉