WordPress - Integration / Setup

Learn how to seamlessly integrate and set up WordPress for optimal performance and enhanced user experience.

In this article, you will learn more about how to integrate Weglot into your WordPress website.

If you start from the WordPress plugin

 

If you start by using our plugin on WordPress, you’ll first see this screen:



 

If you don’t have a project set up on Weglot, you’ll need to click on the « Get my API key for free » button.

 

You’ll then be redirected to the Weglot register page to create your account or a new project if you already have an account.

 

We will already know your website URL, so the very first step for you will be to indicate the language from which you are translating and the language(s) to which you want to translate your website:
 
Once you’ve completed this step, your website will be scanned, and you’ll access a section in which you can give some information about your website and the translations you desire.
There will be a short description of your website, and you'll have the possibility to select tags to adapt translations.
You'll also have a translation on the right, which you can edit to check the translation's quality and adapt the prompt on the left:


Above the “Continue” button, you'll find an “Advanced” section, allowing you to add guidelines so that translations are more adapted to your needs.

 

 
Once you click on « Continue », you will arrive on the API key page and find the API key related to your new project.

Note that you have 2 buttons at the bottom:

  • "Setup guide" leads you to the current setup article you are reading
  • “video” leads to a video explaining how to set Weglot up on your website
     
Copy this API key, go back to your WordPress plugin, and paste the API key.
You can now finish your Weglot setup.

If you are using our US environment, you may see an error when adding the API key in the plugin on WordPress.
You need to go to your wp-config.php file to add this line of code:

define( 'WEGLOT_ENV', 'env_us' );


If you still see the error after this change, please contact us at help@weglot.com.

 

The Weglot switcher will appear at the bottom right of your website and will allow you to fully translate your website.



 

If you start from the Weglot dashboard

 
If you don’t have a Weglot account, you will need to create one and will have to follow the onboarding steps described in this article we made.


 

Once you create your Weglot project, you’ll need to indicate your website URL.
After this, indicate that you are using WordPress:


 

After this, you’ll need to indicate the source language of your website and the language(s) you want to translate it into:
 
Once you’ve completed this step, your website will be scanned, and you’ll access a section in which you can give some information about your website and the translations you desire.
There will be a short description of your website, and you'll have the possibility to select tags to adapt translations.
You'll also have a translation on the right, which you can edit to check the translation's quality and adapt the prompt on the left:


Above the “Continue” button, you'll find an “Advanced” section, allowing you to add guidelines so that translations are more adapted to your needs.

 

After going ahead, you will have access to your new API key.

Note that you have 2 buttons at the bottom:

  • "Setup guide" leads you to the current setup article you are reading
  • “video” leads to a video explaining how to set Weglot up on your website
 
You now need to go to the Weglot plugin for WordPress, activate the plugin, and paste the API key in the corresponding section « Enter your API key » :

Note that if you are using our US environment, it is possible that you face an error when adding the API key in the plugin on WordPress.
You will need to go to your wp-config.php file to add this line of code:

define( 'WEGLOT_ENV', 'env_us' );


If you still see the error after this change, please contact us at help@weglot.com.


 

After clicking on « Connect Weglot », you’ll have access to the plugin and will be able to go ahead.
A Weglot switcher will appear on your website (bottom-right), and by using it, you will be able to translate your website.
Give feedback about this article

Was this article helpful?