本文へスキップ

Elementor 向け glot

サイトビルダー · プラグイン

glot は Elementor にプラグインとしてインストールします。設定方法は下の手順のとおりです。

プラットフォーム側の手順は、Elementor の画面のメニュー名に合わせて英語で記載しています。

glot プラグインをインストールする

  1. Download glot.zip (built from integrations/wordpress-plugin in the glot repository; it isn't on WordPress.org yet). It needs WordPress 6.1+ and PHP 7.4+.
  2. In WordPress, go to Plugins → Add New → Upload Plugin, upload glot.zip and activate it.
  3. Open Settings → glot and enter your project slug, your public key (pk_…, never a secret glot_… key), the source language and your languages, then save. The plugin adds glot.js to every front-end page.
  4. Optional: place the language switcher with the [glot_switcher] shortcode, the glot language switcher widget or block, or the Elementor widget; otherwise it sits in the corner you picked.
  5. Optional: for translated URLs, set up glot Edge (subdomain or subdirectory) and choose it as the SEO mode, so the plugin adds hreflang links to the Edge pages.
  6. Optional: click Connect to glot with a glot API token to link the WordPress connector, so translations are also written into Polylang Pro or WPML posts.
コネクタの詳しいドキュメント

別の方法:ユニバーサルタグ

Elementor 連携で対応していない部分をブラウザで翻訳するには、ユニバーサルタグを追加します。

  1. glot でプロジェクトを作成し、言語を追加します。
  2. glot Edge → サイト用タグを開き、サイトのアドレスを入力します。glot がサイトを翻訳してプレビューを表示します。タグを貼り付けたら、同じ画面でインストールを確認し、タグをオンにします。
  3. そのタブからタグをコピーします。プロジェクトと公開キー(data-key)はすでに入っています。下のタグはその形式の例です。
glot タグ
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>
  1. In WP Admin, go to Elementor → Custom Code.
  2. Click Add New Custom Code.
  3. Enter a Title, set Location to <head>, and paste the glot tag into the code editor.
  4. In the Publish box, click Edit next to Conditions and set the snippet to show on the entire site.
  5. Click Publish.
サイト用タグのガイド

必要なプラン

Custom Code is available on Advanced Solo, Advanced, Expert and Agency plans. It is not included in the Essential plan or in free Elementor. Without it, use a header/footer plugin as on any WordPress site.

glot の各プランの内容は料金ページをご覧ください。glot Edge(翻訳済み URL)は Growth プランに含まれ、Pro では限定トライアルを利用できます。

検索エンジン向けの翻訳済み URL

JavaScript を実行せずに検索エンジンがインデックスできる翻訳ページにするには、2 つの DNS レコードで glot Edge をドメインのサブドメイン(es.example.com)に置きます。

DNS レコード(TXT トークンは glot Edge → セットアップに表示されます)
es.example.com.        CNAME  edge.glotlang.com.
_glot.es.example.com.  TXT    "<token shown in the dashboard>"

Add the CNAME and TXT at your domain's DNS provider. On Elementor Hosting with a domain managed by Elementor, use Manage DNS → Add Record, which supports CNAME and TXT.

glot Edge の仕組み

よくある質問

glot は Elementor のパートナーですか?
いいえ。glot は独立しており、Elementor との提携や Elementor による推奨はありません。このガイドは Elementor の標準機能だけを使っています。
glot は Elementor のコンテンツを変更しますか?
元のコンテンツはそのままです。プラグインはブラウザでページを翻訳し、接続すると、公開前に確認できる言語フィールドに翻訳を書き込みます。
翻訳は検索エンジンにインデックスされますか?
タグだけではほとんどされません。ブラウザで翻訳するため、検索エンジンが主にインデックスするのは元の言語です。言語ごとの URL を持つ翻訳ページには、glot Edge か、言語ごとに URL を公開するプラットフォームが必要です。
I only have free Elementor.
Custom Code is a Pro feature. Install a header/footer code plugin like WPCode and paste the tag there instead.

Elementor の公式ドキュメント

Elementor のサイトを翻訳する

プロジェクトを作成して言語を選び、上の手順に従ってください。

Elementor は各所有者の商標です。glot は Elementor と提携していません。