glot für WordPress (self-hosted)
CMS · Plugin
glot wird in WordPress (self-hosted) als Plugin installiert. Die Schritte unten richten es ein.
Die Schritte der Plattform sind auf Englisch, mit den Menünamen der Oberfläche von WordPress (self-hosted).
Das glot-Plugin installieren
- 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+.
- In WordPress, go to Plugins → Add New → Upload Plugin, upload glot.zip and activate it.
- 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.
- 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.
- 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.
- 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.
Alternative: das universelle Tag
Um im Browser zu übersetzen, was die WordPress (self-hosted)-Integration nicht abdeckt, fügen Sie stattdessen das universelle Tag hinzu.
- Erstellen Sie in glot ein Projekt und fügen Sie Ihre Sprachen hinzu.
- Öffnen Sie glot Edge → Website-Tag und geben Sie die Adresse Ihrer Website ein: glot übersetzt sie und zeigt Ihnen eine Vorschau. Ist das Tag eingefügt, prüfen Sie dort die Installation und schalten Sie das Tag ein.
- Kopieren Sie Ihr Tag aus diesem Tab: Es enthält bereits Ihr Projekt und seinen öffentlichen Schlüssel (data-key). Das Tag unten zeigt seine Form.
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>- In WP Admin, go to Plugins → Add New and install and activate "WPCode – Insert Headers and Footers + Custom Code Snippets".
- Go to Code Snippets → Header & Footer.
- Paste the glot tag into the Header box.
- Click Save Changes.
- Clear any page cache (caching plugin or host) and check a few pages.
Erforderliche Tarife
Available on any self-hosted WordPress install; you need an administrator account that can install plugins.
Was jeder glot-Tarif enthält, sehen Sie unter Preise. glot Edge (übersetzte URLs) ist Teil des Growth-Tarifs, mit einer begrenzten Testphase in Pro.
Übersetzte URLs für Suchmaschinen
Für übersetzte Seiten, die Suchmaschinen ohne JavaScript indexieren, setzen Sie glot Edge auf eine Subdomain Ihrer Domain (es.example.com), mit zwei DNS-Einträgen:
es.example.com. CNAME edge.glotlang.com.
_glot.es.example.com. TXT "<token shown in the dashboard>"Add the CNAME and TXT records wherever your domain's DNS is managed (registrar, host or Cloudflare). Self-hosted WordPress always runs on a domain you control.
So funktioniert glot EdgeFragen
- Ist glot ein Partner von WordPress (self-hosted)?
- Nein. glot ist unabhängig, weder mit WordPress (self-hosted) verbunden noch von WordPress (self-hosted) empfohlen. Diese Anleitung nutzt nur Standardfunktionen von WordPress (self-hosted).
- Ändert glot meine Inhalte in WordPress (self-hosted)?
- Ihre Ausgangsinhalte bleiben unverändert. Das Plugin übersetzt Seiten im Browser und schreibt, wenn Sie es verbinden, Übersetzungen in Sprachfelder, die Sie vor dem Veröffentlichen prüfen.
- Indexieren Suchmaschinen meine Übersetzungen?
- Mit dem Tag allein kaum: Es übersetzt im Browser, Suchmaschinen indexieren also vor allem Ihre Ausgangssprache. Übersetzte Seiten mit eigenen URLs brauchen glot Edge oder eine Plattform, die jede Sprache unter einer eigenen URL veröffentlicht.
- Can I edit header.php instead of using a plugin?
- It works, but theme updates overwrite edits to theme files unless you use a child theme. A header/footer plugin survives theme changes.
- My cache plugin serves old pages without the tag.
- Purge the cache after saving the header code.
Offizielle Dokumentation von WordPress (self-hosted)
Übersetzen Sie Ihre WordPress (self-hosted)-Website
Erstellen Sie ein Projekt, wählen Sie Ihre Sprachen und folgen Sie den Schritten oben.
Weitere Integrationen: CMS
WordPress (self-hosted) ist eine Marke ihres Inhabers. glot ist nicht mit WordPress (self-hosted) verbunden.