WordPress.com 向け glot
CMS · ユニバーサルタグ
WordPress.com では、すべてのページに追加する 1 つのスクリプトタグで glot が動きます。訪問者のブラウザでページを翻訳し、言語メニューを追加します。
プラットフォーム側の手順は、WordPress.com の画面のメニュー名に合わせて英語で記載しています。
glot タグを追加する
- glot でプロジェクトを作成し、言語を追加します。
- glot Edge → サイト用タグを開き、サイトのアドレスを入力します。glot がサイトを翻訳してプレビューを表示します。タグを貼り付けたら、同じ画面でインストールを確認し、タグをオンにします。
- そのタブからタグをコピーします。プロジェクトと公開キー(data-key)はすでに入っています。下のタグはその形式の例です。
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>- Install and activate the free WPCode (Insert Headers and Footers) plugin.
- In your site's dashboard, go to Code Snippets → Header & Footer.
- Paste the glot tag into the Header box.
- Click Save Changes.
必要なプラン
Header code and plugins are available on the Personal, Premium, Business and Commerce plans. Free sites must upgrade.
glot の各プランの内容は料金ページをご覧ください。glot Edge(翻訳済み URL)は Growth プランに含まれ、Pro では限定トライアルを利用できます。
検索エンジン向けの翻訳済み URL
JavaScript を実行せずに検索エンジンがインデックスできる翻訳ページにするには、2 つの DNS レコードで glot Edge をドメインのサブドメイン(es.example.com)に置きます。
es.example.com. CNAME edge.glotlang.com.
_glot.es.example.com. TXT "<token shown in the dashboard>"If WordPress.com manages your domain's DNS, go to Domains → your domain → Settings → DNS records → Add record and add the CNAME (Name: es, Alias of: edge.glotlang.com) and the TXT (Name: _glot.es). If your name servers are elsewhere, add the records at that provider. Not possible on a wordpress.com address.
glot Edge の仕組みよくある質問
- glot は WordPress.com のパートナーですか?
- いいえ。glot は独立しており、WordPress.com との提携や WordPress.com による推奨はありません。このガイドは WordPress.com の標準機能だけを使っています。
- glot は WordPress.com のコンテンツを変更しますか?
- いいえ。タグは訪問者のブラウザでページを翻訳するだけで、WordPress.com のコンテンツはそのままです。タグを外せば、サイトは元の言語に戻ります。
- 翻訳は検索エンジンにインデックスされますか?
- タグだけではほとんどされません。ブラウザで翻訳するため、検索エンジンが主にインデックスするのは元の言語です。言語ごとの URL を持つ翻訳ページには、glot Edge か、言語ごとに URL を公開するプラットフォームが必要です。
- Does it work on the free plan?
- No. Free sites cannot add header code or install plugins.
- Do I type the full hostname in the DNS Name field?
- Enter only the label (es, _glot.es). WordPress.com strips the domain if you type it.
WordPress.com の公式ドキュメント
WordPress.com のサイトを翻訳する
プロジェクトを作成して言語を選び、上の手順に従ってください。
その他の連携:CMS
WordPress.com は各所有者の商標です。glot は WordPress.com と提携していません。