TranslatePress language switcher

Integration 3 min read

This integration renders a language switcher in the theme's style, instead of the one TranslatePress draws itself.

In practice: the switcher looks like part of the header rather than an insert from elsewhere, and behaves the same way on every screen size. Flags and language names come from the same plugin.

A useful side effect: TranslatePress's own switcher stylesheets are removed, so they cannot conflict with the theme.

#What it does not do

The integration does not translate. It does not touch how translation happens or how translated content is displayed.

All of the multilingual work stays with TranslatePress and is configured there.

Our part is exactly one thing: the switcher.

Translating your site and setting up RTLThree different jobs live under the word "translation", and confusing them is why people get stuck. They are solved separately. Translating interface strings The words the theme and plugins...How-to Guide

#What you need

The TranslatePress plugin, installed and active. This integration is an overlay on it.

The order: TranslatePress first, with your languages configured, then our integration.

Languages are defined in TranslatePress, and the switcher shows exactly that set.

Adding a language happens in the plugin rather than here, and their own documentation covers the setup. Nothing in the theme can add a language the plugin does not know about.

#Where it is configured

This integration has no page in the Integrations block, because there is nothing in it to configure.

Every switcher setting lives where the switcher is rendered, in the theme's navigation settings: the switcher source, the provider, and its position in the header.

The connection to the service is identical across all our themes, and the switcher's placement is different in each one.

#Integrations are part of the theme

This integration is licensed with the theme, not on its own.

Integrations are premium functionality for customers running a Pro license of one of our themes. They are written against our themes and expect them, and we cannot support or take responsibility for what one does inside somebody else's theme. See how theme integrations work.

#Common questions

A language is missing from the switcher

Add it in TranslatePress, because the switcher reflects that plugin's language list and has no list of its own to edit.

Can I use the plugin's switcher instead?

Yes, deactivate this integration and TranslatePress draws its own again along with the stylesheets we were removing.

Do I need the paid version of TranslatePress?

That depends on how many languages and which features you need, which makes it a question for their pricing rather than for the theme.

Will the switcher work with the visual translation editor?

Yes, the switcher is a front end element and the translation editor is TranslatePress's own screen, so the two do not interfere with each other.

The switcher does not appear at all

Check that TranslatePress is active and holds more than one language, then check the navigation settings where the switcher is enabled and positioned, and clear any page cache if both look right, because a cached header hides a correctly configured switcher more often than anything else does.

#Still stuck

Open a support ticket with the languages configured in TranslatePress and a screenshot of the navigation settings.

Last updated

Was this article helpful?

Related articles

FIND THE ONE THAT FITS YOUR PROJECT

Import a demo, swap the content, adjust the layout. Modern WordPress under the hood, fast even when the site fills up.