How to Add Google Translate to WordPress (Create a Multilingual Website)

As times change, more and more websites are focusing onAccessibility and inclusiveness, globalization. The easiest thing to do is to provide multiple language support on your WordPress site. We talked earlier about usingTranslatePressplugin plusAPI of DeepLSet up multi-language for the website, specific reference to the articleWordPress Multi-language how to set up (optimize website SEO)The

The logic of today's tutorial is pretty much the same, with simple and no-code-needed methods available:That's using Google Translate!. Can make websites support dozens of languages. No matter what type of website you have, you can set up Google Translate on your WordPress site in minutes without writing code.

In this post, we will share how to integrate Google Translate and itsHow to use, translated content(used form a nominal expression)SEO TipsYou can choose the right one for you.

图片[1]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

Why use Google Translate on your WordPress website?

If you use Google Translate on your WordPress website, you are able to appeal to a wider audience by offering content in multiple languages, as many people will prefer to use their native language when browsing the web. Offering this option can significantly improve the user experience of a website.

Although Google Translate cannot replace professional translators in terms of quality, it can be considered a cost-effective option for multilingual websites. It is very convenient and can quickly make a website accessible to users worldwide.

Additionally, Google Translate helps websites appear in search results in different languages (SEO in other languages), thus increasing visibility in the global market. However, SEO (Search Engine Optimization) can become complicated when using multiple languages on a website. This is something we will discuss in detail later.

A step-by-step guide to adding Google Translate to WordPress

To add Google Translate and configure it on WordPress, you can follow the 5 steps below:

Step 1: Install the Google Language Translator plugin

The first step is to install and activate the plugin.

  • switch toWordPress GaugeDisk.
  • Navigate toPlugins > Add New PluginThe
图片[2]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度
  • look for sth.Google Language TranslatorPlug-ins.
  • click (using a mouse or other pointing device)Install it now.
图片[3]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度
  • after thatactivateThe

Step 2: Configure Google Translate settings

Once the plugin has been activated, the

  • switch toInstalled plug-ins.
  • locateGoogle Language TranslatorThe
  • There, findSetting.
图片[4]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

Here, there are a number of options, as shown below:

图片[5]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

Tick the checkbox shown in the image below to activate the plugin, even though itUsually checked by defaultThe

You also need to choose your site'scurrent language. Although the plugin usually selects it automatically, it's a good idea to double-check to make sure the correct language is selected. In the case of our demo, for example, it's set toEnglish (language)The

图片[6]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

On the main screen, you will see "Which languages will be active".under a long list of languages and checkboxes. Next to it are two options

  • Select All
  • removals

The first option allows the translation of the original English intoAny language.In the second option, it is possible to specify the translation of theparticular languageThe

I choseFrench (language),German (language),Spanish languagerespond in singingPortuguese (language)The

图片[7]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

Next, choose to display a logo for each language selected.

图片[8]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

Step 3: Add Google Translate to WordPress Site Main Navigation

Display settings can be customized, such as selecting a button or drop-down style for the translation widget. Scroll down toFloating Widget Settingsto find the following settings:

  • Displays a floating translation widget:Decide whether to display the floating translation widget on your website.
  • Custom text for floating widgets: Enter any text you want to display in the floating widget.
  • Allow translation of floating widget text:Check this option if you want the text on the floating widget to be translated into another language.
  • Floating Widget Position: Choose where on the site the floating widgets fit better on your site.
  • Floating widget text color:Change the color of the text that appears in the floating widgets according to the overall theme of the site.
  • Floating widget background color: Customize the background color of the floating widgets to match the design and overall aesthetics of the site.

See the pictures below for an idea of how I adjusted the settings:

图片[9]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

This means that I want the widget to be displayed in the top center and I want it to be red in color. Also, I have changed the text to "Translate for me".

When you're done, scroll down and save the settings.

图片[10]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

The changes are shown below. The translation widget is located in the top center with the desired text and color:

图片[11]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

Here is the German version of the homepage:

图片[12]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

Step 4: Setting up Google Translate for WordPress Usage Settings

The Google Language Translator plugin allows you to place the Google Translate widget on any part of your WordPress website, includingweb page,card,a side-bar (in software),footerrespond in singingfootersThe

Scroll down to find "utilization " section. It will tell you the code you should use.

图片[13]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

Below are the different shortcodes and PHP codes on how to use the plugin:

1. Use in pages/posts/sidebars:

  • Open the page or post on which you want to display the translation widget.
  • In the page/post editor, set the [google-translator] Shortcode.Insert the location where you want the widget to be displayed.
图片[14]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

The results are as follows:

图片[15]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

2. For header/footer/page templates:

If you want to add the Google Translate widget directly to your website's header, footer or custom page template, you can use PHP code instead of shortcode.

Add the following PHP code to the appropriate template file:

<?php echo do_shortcode('[google-translator]'); ?>

By this point, the setup is complete and you can go to theTesting the translation functionSee if there's anything out of the ordinary.

图片[16]-WordPress网站谷歌翻译集成:优化多语言SEO,提升全球可见度

Tips for optimizing translated content for SEO

Here are some SEO tips to keep in mind when using Google Translate:

Using Hreflang Tags: Use hreflang tags whenever possible to tell search engines which language and location the site is relevant to.

This helps search engines to display the correct language version based on the user's location and language.

Optimize meta tags for each language:Ensure that each translated page has a meta title and description optimized for the target language.

This will improve the ranking of the site and make it more noticeable in search listings.

Accurate translation of keywords:Include local keywords in your research and use them when organizing content for your target market.

Sometimes direct translation is not appropriate, so it is important to understand the specific culture of the language in which the keyword to be translated is intended.

Maintains the URL structure:Do not use special characters in the URL. Instead, use underscores or hyphens and use the target language in the URL (/fr/ for French, /de/ for German).

It helps search engines and users find the site.

Avoid duplicate content:Ensure that search engines do not see translated material as duplicate copies.

When using the help of an automatic translation tool, be sure toSelf-editing contentto avoid copying and pasting.

Create sitemaps for each language:Make sure the sitemap contains all language versions of the page and submit it to search engines to make the crawling process as efficient as possible.

Focus on quality of content:Translated content should not be of poor quality, boring or irrelevant. This means that it should not provide"monotonous content".Instead, the translated content should be made valuable to users of both languages.

Optimize images and alternative text:Images should also be translated, and alternative text should also contain information relevant to the target language, as search engines use this information for indexing.

summarize

In conclusion, setting up Google Translate for your WordPress website is one of the best and cheapest ways to reach a diverse market by offering content in multiple languages.


Contact Us
Can't read the article? Contact us for free answers! Free help for personal, small business sites!
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
This article was written by Banner1
THE END
If you like it, support it.
kudos13 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments