Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Så här lägger du till Google Translate i WordPress

Vi lever i en värld fylld av olika språk. Språkforskare uppskattar att det finns mellan 6 000 och 7 000 olika språk i världen.

Även om många människor förstår engelska kan det vara värt att översätta din webbplats om en stor del av din publik talar ett annat språk. Översättning av innehåll säkerställer att alla kan komma åt och förstå den information du tillhandahåller.

När vi söker efter innehåll om WordPress-utveckling kan vi snubbla över utmärkt innehåll på franska eller ryska bloggar. Och vi använder ofta Google Translate för att förstå det, även om det inte är perfekt.

I den här artikeln visar vi hur du lägger till Google Translate på din WordPress-webbplats. På så sätt kan du nå en bredare publik och förbättra användarupplevelsen för icke-engelsktalande.

Videohandledning

Subscribe to WPBeginner

Om du föredrar skriftliga instruktioner kan du fortsätta läsa.

Lägga till Google Translate i WordPress

Det första du behöver göra är att installera och aktivera pluginet Google Language Translator.

När du har aktiverat pluginet ska du gå till Inställningar ” Google Language Translator för att konfigurera pluginet.

Google Language Translator plugin settings

Se till att kryssrutan bredvid ”Plugin Status” är markerad.

Därefter måste du välja webbplatsens standardspråk och de språk som du vill ska vara tillgängliga för översättning.

Selecting languages

Låt oss nu rulla ner till sidan för att hitta avsnittet ”Inställningar för språkomkopplare”.

Här kan du anpassa switcherns utseende och känsla. Du kan anpassa den flytande översättningswidgeten på din webbplats genom att:

  • Att välja om det ska visas eller inte
  • Välja dess position
  • Justera dess storlek
  • Ändra textfärgen så att den matchar webbplatsens design.
Customizing switcher's design

När du har anpassat inställningarna för Google Language Translator-pluginet är det dags att publicera det på din WordPress-webbplats.

Om du nu scrollar ner lite längre hittar du en snabbguide för att bädda in switchers på din WordPress-webbplats. Du hittar den precis innan knappen ”Spara ändringar” längst ner på sidan.

A quick guide for embedding Google Language Translator

Följ bara instruktionerna, så har du Google Language Translator inbäddad på din webbplats.

Glöm inte att klicka på knappen ”Spara ändringar” innan du lämnar sidan.

Obs: Efter publiceringen kanske du märker att Google Translate låter användarna läsa en översatt version av webbplatsen och översätta den själva.

På så sätt kan dina läsare till och med hjälpa till att förbättra maskinöversättningen av en sida genom att föreslå förbättringar för Googles översättning. Om du har många läsare kan du faktiskt få hela din webbplats översatt av frivilliga.

Vi hoppas att den här artikeln hjälpte dig att lägga till Google Translate på din WordPress-webbplats. Därefter kanske du vill kolla in vår guide om hur du översätter ett WordPress-plugin till ditt språk och våra expertval av de bästa höger-till-vänster WordPress-temana.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

51 kommentarerLämna ett svar

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

    • WPBeginner Support says

      It sounds like your theme may have had an error, if you have not done so already we would recommend reaching out to your theme’s support and they should be able to assist!

      Administratör

    • WPBeginner Support says

      You would want to check with the support for your specific theme for what options it has available for locations.

      Administratör

  2. Jans says

    For some reason google page speed insight is seeing GTranslate plugin as the one slowing down my loading time the most. Is there a way to fix this?

    • WPBeginner Support says

      You would want to reach out to the plugin’s support and they would be able to assist with the loading speed :)

      Administratör

  3. gurpreet says

    Hi. I tried to add the floating widget of google translate on my company’s website and chose punjabi language for translation, the main language being english. But the flag icon for punjabi is a Pakistani flag. We require an Indian flag since we are of Indian Nationality and Punjabi is spoken in Punjab state of India. Please help

  4. Pooja says

    Hi Team,

    Google Language Translator plug in is also changing the name of my website that is there in the header of my website created on WordPress.

    Can you please let me know how I can disable it from translating the name of my website.

    Regards,
    Pooja

    • WPBeginner Support says

      Hi Pooja,

      You can stop Google Translate from translating a specific phrase by adding notranslate css class. For that you’ll need to edit your theme files or create a child theme.

      Inside your theme files, you need to locate the header.php file and find the line that displays your site’s title. Let’s assume that it looks like this:

      <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
      

      You need to change it to this:

      <h1 class="site-title notranslate"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
      

      Hope this helps.

      Administratör

  5. maryam says

    Hi,

    I installed and used this plugin but it didn’t display on mobile devices, Does it work withe mobile devices ??

    Many thanks

  6. Niki says

    Hi,

    does it work on mobile. I have added the plugin on my wordpress site. It works on computer but does not display on mobiles.

    Thanks!

  7. anil jhuria says

    how to add google language translate in my wordpress site & not showing widget my page
    pls how to another opation to add google language translate

  8. Amanda Payne says

    Thank you so much. I had a few readers asking me why my site wouldn’t translate and now it does. I have visited your site daily learning all about WP. You are a great teacher! Thank you so much!

  9. Bo says

    Just installed the plug-in and everything is working fine, though I’d like to improve the translation for the languages I do know. However, both when I am logged and checking out my site on a private browser, I am not able to change the translation myself.

    The plug-in page seems to suggest this is only possible in their Premium version. Is there a workaround or something I am missing?

    Thank you!

    • WPBeginner Support says

      Visit the Google Translate website directly in a separate browser window. In the translate box, paste the URL of your website. Select the language you want to translate it to and hit the translate button. You should now be able to select text and improve translation.

      Administratör

  10. pankaj chavan says

    Is there a way when language is changed in google translate I can change images. Any parameter by google translate

  11. Ayman SABRA says

    Hi, is there a way to Ad the google translate widget somewhere in the header or top right(/left) corner?
    I am very new to all of this and I have no knowledge of coding
    Thank you

  12. Kenneth Adair says

    I love this plugin but the flags disappear when my sites fully open. That is to say I can see the flags until the site has fully opened and than all that is visible is the language box with a blank space where the flags were. The wordpress raindrops theme I am using is supposedly compatible!
    But I also installed it on an obsolete them that doesn’t even show up anymore on wordpress named Techozoic and it works 100% and I can’t wait to see the customers it may bring me.

  13. Anthony says

    Have you or has any one reading this article tried / used the premium WordPress Multilingual Plugin from WPML

    Are there any advantages to buying this plugin over using the free Google Translator plugin?

    • Alex says

      Use these tags, for center, for left, or for right.
      Place one of those tags in front of the shortcode or PHP code. Then use a closing tag like this, , , or
      Place one of the closing tags at the end of your Shortcode or PHP code.

  14. Matteo Coné says

    I have created a blog on ”The Twenty Ten Theme. Blog at WordPress.com.” https://mc1a.wordpress.com/

    I watched the Video Tutorial, read ”Adding Google Translate in WordPress” and I cannot find the word ”Plugin” anywhere on my dashboard.

    The words ”Plugins and Installed plugins” DO NOT appear anywhere on my dashboard.

    How do I add “plugins and installed plugins” on my dashboard.

    Can someone help please.

    Thanks
    Matteo

  15. Simon Andrew says

    Having tried a few different methods to create multi-lingual sites this seems the best. Manage the translations and have them done properly, and only in the languages you need and its great. I don’t think it is particularly good if your site is in Googlish, so make sure you only add languages you have translations for and its all good

    Simon

  16. RomanMorenets says

    Interesting – is therу a way to insert exact translate textarea boxes from Google Translator? For example – I have multilingual form for clients. And they have to fill it up in different languages, but if they don’t know one, then translation with google translate is acceplable. So, would be interesting to have google translate on site available for only form fields. Any idea?))

  17. Pierre Pascual says

    Hello
    Google translation is find but I like to prevent the translation of my company name. Is this possible ? (using WordPress plugin)

  18. Hammad Rafique says

    Is there any other plugin, which works just like google translate for chrome? I mean, it changes the site’s content according to country’s IP address? If I open my blog from France then its content should be in french?

  19. Krish Murali Eswar says

    It would be useful, for all your posts, to include a set of demo screen shot pre- and post-installation of plugins that you cover. Demo screen shot of how the plugin works will make our lives lot easier to decide for/against the use of plugin.

  20. Ana says

    when I choose English to translate everything works ok, but when I choose Spanish to return to the original page I added in below the names of the categories and texts not translate well.

    Help me , please

    • Editorial Staff says

      No because most of our users use Chrome browser which automatically loads Google Translate for them if their default language is something other than English.

      Administratör

  21. Lee Johnson says

    As a linguist I have to agree that Google Translate can complicate matters. I would suggest f you cannot have dedicated pages in chosen language(s) then use Google Translate but add a rider saying that Google Translate is only a program and not perfect.

  22. ros says

    I just uninstalled the global translation plugin after reading write up on SEO’s issues – duplicated contents and so forth. SO this is nothing like that, right? Btw if I were to create my own translated page, is it wise to do it in subdomain ie www.(MyUrlAddress).com/English or is it better to do it on different domain. Thanks

    • Editorial Staff says

      No this plugin has no impact on your SEO because it is only doing things on user side of things. If you were to create your own translated domain, then both subdomains or directory works fine.

      Administratör

      • Rose says

        Hi

        Thanks to all for replying. I will activate the tool then , better to have something than nothing :) and will work on the translations soon. Thanks

        p.s: yes, some translations to (my native language) do sound ugly, especially the categories and tags :)

  23. Bernard Loo says

    Google translator is better than nothing, but it can be misleading. Besides most languages have different structures: verbs are not placed in the same order.

    • Karsten says

      I can not agree. Translation from English to German is not ”better than nothing”. It’s just horrable. In most cases it’s not even possible to guess the meaning of an article.
      I can’t tell if it’s that worse in other languages too, but for EN DE it’s a No-Go.

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.