{"id":344681,"date":"2023-04-03T13:17:33","date_gmt":"2023-04-03T13:17:33","guid":{"rendered":"https:\/\/colorlib.com\/wp\/?p=344681"},"modified":"2023-04-03T15:59:34","modified_gmt":"2023-04-03T15:59:34","slug":"wordpress-language-switcher","status":"publish","type":"post","link":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/","title":{"rendered":"How to Add a WordPress Language Switcher to Your Multilingual Website"},"content":{"rendered":"\n<p>Turning your WordPress website multilingual can be a great way to reach new audiences. It&#8217;s also one of the top methods to make sure that you always present your content, offers, or services in a language that matches the reader&#8217;s preferences hand-in-glove. There&#8217;s just one problem with that &#8211; or a challenge, rather &#8211; how to actually add a language switcher module to your WordPress website?<\/p>\n\n\n\n<p>This is what we&#8217;re here to show you today. What follows is a quick beginner&#8217;s guide to website language switchers. We&#8217;re going to explain what a language switcher is, what it actually does, what the main types of language switchers are, and how to add one to your WordPress website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-a-website-language-switcher\">What is a website language switcher?<\/h2>\n\n\n\n<p>Simply speaking, a website language switcher is an item such as a drop-down menu, link, or button, typically in one corner of the page&#8217;s structure.<\/p>\n\n\n\n<p>For example, it can be something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2023\/03\/duolingo-1024x305.png\" alt=\"An example of a website language switcher by Duolingo\" class=\"wp-image-1267614\" \/><\/figure>\n\n\n\n<p>The switcher enables the reader to change the language of the site&#8217;s content to one that suits them better. This can be incredibly helpful if your site caters to audiences in a handful of countries and you want to provide them with more options than just English.<\/p>\n\n\n\n<p>A language switcher can help foster brand retention, show that you understand your audience&#8217;s needs, and can deliver solutions tailored to them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-types-of-website-language-switchers\">Types of website language switchers<\/h3>\n\n\n\n<p>There&#8217;s a handful of language switcher types you can use on your website. First of which you&#8217;ve already seen in the example above. \u261d\ufe0f That demo from Duolingo&#8217;s website is a good example of an <strong>&#8220;icon plus text&#8221;<\/strong> language switcher.<\/p>\n\n\n\n<p>Arguably, it&#8217;s the best type of language switcher you can use since it presents flags of countries along with the name of the language in writing to make the selection highly scannable and super clear to readers.<\/p>\n\n\n\n<p>One simplification of this idea is to display <strong>text only<\/strong> &#8211; simply the name of the language on its own. Such language switchers are usually found in navigation menus or <a href=\"https:\/\/colorlib.com\/wp\/cat\/bootstrap-dropdowns\/\">drop-downs<\/a>. That is because there&#8217;s usually not a lot of room for <a href=\"https:\/\/colorlib.com\/wp\/free-icons-adobe-illustrator\/\">icons<\/a> in crowded site menus, plus they might overpower the rest of the menu.<\/p>\n\n\n\n<p>Here is an example of a text-only language switcher:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2023\/03\/ibm-1024x290.png\" alt=\"IBM's language switcher\" class=\"wp-image-1267615\" \/><\/figure>\n\n\n\n<p>The next type of language switcher is the <strong>full-page website language switcher<\/strong>. The idea behind it is to not let the reader pass through until they decide and pick a specific language.<\/p>\n\n\n\n<p>A restriction like that is often needed on sites that are bound by law to limit some of their services or restrict them to certain areas. This sort of language switcher controls not only the content language itself but also the whole <a href=\"https:\/\/translatepress.com\/wordpress-localization\/\" target=\"_blank\" rel=\"noreferrer noopener\">localization of the site<\/a>.<\/p>\n\n\n\n<p>Here&#8217;s an example of a language switcher like that:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2023\/03\/adobe-1024x579.png\" alt=\"Adobe's language switcher\" class=\"wp-image-1267616\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-benefits-of-making-your-site-multilingual\">Benefits of making your site multilingual<\/h2>\n\n\n\n<p>Before you can add a language switcher to your website, you&#8217;ll need to make that site multilingual. The whole &#8220;making it multilingual&#8221; means that you&#8217;re simply adding other language versions to your site and filling them with <a href=\"https:\/\/translatepress.com\/best-way-to-translate-a-website\/\" target=\"_blank\" rel=\"noreferrer noopener\">content translations<\/a>.<\/p>\n\n\n\n<p>So it goes: multilingual website first, and then language switchers second. \ud83d\udc4d<\/p>\n\n\n\n<p>The benefits of making your site multilingual go way above just the mere fact that you can then put a language switcher on it. Here are some of the key ones:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-reach-a-wider-audience\">Reach a wider audience<\/h3>\n\n\n\n<p>A <a href=\"https:\/\/www.statista.com\/statistics\/262946\/share-of-the-most-common-languages-on-the-internet\/\" target=\"_blank\" rel=\"noreferrer noopener\">study by Statista<\/a> reveals that only 25% of internet users are native English speakers, while over 50% of all web content is in English. This gap creates a lot of opportunity for businesses that decide to offer different language versions of their sites. As of January 2023, there are 5.16 billion internet users worldwide, so the market for non-English content is quite huge to say the least.<\/p>\n\n\n\n<p>While there are products and services that can only be offered in certain areas, humans generally have similar needs when it comes to content consumption across the world. Having a multilingual website thus can help you reach new and potentially lucrative markets in non-English-speaking countries.<\/p>\n\n\n\n<p>Plus, even in countries where English <em>is<\/em> the native language, like the United States, you&#8217;ll find sizable communities that speak languages such as Spanish, French, Mandarin Chinese, and more. A multilingual website can therefore expand your business to people of all languages, both domestically and internationally.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-better-multilingual-seo\">Better multilingual SEO<\/h3>\n\n\n\n<p>Not every website owner knows this, but there&#8217;s something called <a href=\"https:\/\/translatepress.com\/multilingual-website-seo\/\" target=\"_blank\" rel=\"noreferrer noopener\">multilingual SEO<\/a>. To give you the &#8220;in the nutshell&#8221; brief, Google basically presents different search results based on the language set in the user&#8217;s system and browser.<\/p>\n\n\n\n<p>Plus, interestingly, ranking for certain terms in English is way harder than ranking for them in Spanish or German. Once you add the fact that you might indeed have a good reason for reaching those international audiences, then dabbing into multilingual SEO is a very good idea.<\/p>\n\n\n\n<p>In simple terms, you want your content to be found regardless of the language in which the user enters the phrase into Google.<\/p>\n\n\n\n<p>Making your site multilingual and also making sure that the content is all well optimized and crawlable by Google is a great investment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-reduce-bounce-rate-and-increase-conversions\">Reduce bounce rate and increase conversions<\/h3>\n\n\n\n<p>CSA Research surveyed 8,700+ online consumers in 29 countries and found that <a href=\"https:\/\/csa-research.com\/Blogs-Events\/CSA-in-the-Media\/Press-Releases\/Consumers-Prefer-their-Own-Language\" target=\"_blank\" rel=\"noreferrer noopener\">76% of them<\/a> prefer purchasing products with information in their own language.<\/p>\n\n\n\n<p>What does this mean in practice? For once, it means that there are lots of people who will leave your site immediately if they can&#8217;t find their preferred language version on it. Or, rather, they will go to a competitor who has that language version.<\/p>\n\n\n\n<p>Similarly, making your site multilingual gives you an edge over the competitors who didn&#8217;t make this move.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-best-practices-when-using-a-website-language-switcher\">Best practices when using a website language switcher<\/h2>\n\n\n\n<p>With the &#8220;why&#8221; out of the way, let&#8217;s now list some things to keep in mind when designing the language switcher for your site:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-place-the-language-switcher-in-a-visible-spot\">Place the language switcher in a visible spot<\/h3>\n\n\n\n<p>The standard for language switcher placement is usually somewhere in the top-right corner &#8211; next to the main menu of the site, or in the footer. An example from Notion:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2023\/03\/notion-1024x543.png\" alt=\"Notion's language switcher\" class=\"wp-image-1267617\" \/><\/figure>\n\n\n\n<p>Or, alternatively, a lot of sites opt for displaying a language switcher that floats somewhere near the bottom-right corner and remains visible at all times. Like this one:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2022\/12\/switcher-in-action-1024x564.jpg\" alt=\"Floating switcher in action\" class=\"wp-image-1256969\" \/><\/figure>\n\n\n\n<p>No matter what specific placement you choose, the main goal is to make it as easy to find as possible. If someone doesn&#8217;t understand the language that the site is in, then the language switcher is literally the first thing they&#8217;re going to be looking for.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-avoid-using-country-flags-on-their-own-as-the-language-switcher\">Avoid using country flags on their own as the language switcher<\/h3>\n\n\n\n<p>Flags are great as a language identifier in the most basic cases. However, they&#8217;re also excluding big groups of users.<\/p>\n\n\n\n<p>First off, flags alone are not an accessible solution. Meaning, a visually impaired person might not either distinguish between similar looking flags or see them at all.<\/p>\n\n\n\n<p>Secondly, some countries might be home to two or more languages, so it&#8217;s not immediately clear which one the language switcher refers to.<\/p>\n\n\n\n<p>For example, the <a href=\"https:\/\/www.unitedlanguagegroup.com\/blog\/inside-design-a-language-selector-is-no-place-for-flags\" target=\"_blank\" rel=\"noreferrer noopener\">United Language Group points out<\/a> that though India uses Hindi and English as their official languages, the country is home to 448 unique languages. Using an Indian flag in the language switcher can therefore be confusing for Indian natives as they cannot know which language the flag represents.<\/p>\n\n\n\n<p>Using a flag plus the name of the language is a much better solution. It&#8217;s accessible and clear to everyone.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2023\/03\/flag-and-name.png\" alt=\"Flags and names\" class=\"wp-image-1267618\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-experiment-with-automatic-language-switching\">Experiment with automatic language switching<\/h3>\n\n\n\n<p>Depending on what type of site you run and what type of content you offer, it might be a good idea to set the language switching operation to be triggered automatically.<\/p>\n\n\n\n<p>The way this works is that your language switching software can detect the language setting of the visitor&#8217;s web browser plus their location settings through cookies, and then adapt the site&#8217;s content based on that automatically.<\/p>\n\n\n\n<p>This enables your audience to have a seamless experience without having to interrupt their activities by looking for a manual language switcher. Ideally, your site visitors should not have to do any additional work to get the information they need.<\/p>\n\n\n\n<p>At the same time, your visitors don&#8217;t lose the ability to switch back or alter the language settings later on.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-add-a-language-switcher-to-a-wordpress-website\">How to add a language switcher to a WordPress website<\/h2>\n\n\n\n<p>If <a href=\"https:\/\/colorlib.com\/wp\/how-to-make-a-website\/\">your site runs on WordPress<\/a>, then adding a language switcher to it &#8211; and actually making it multilingual under the hood &#8211; is very easy.<\/p>\n\n\n\n<p>To make it work, you&#8217;ll need the free <a href=\"https:\/\/translatepress.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">TranslatePress<\/a> plugin. It&#8217;s one of the most popular translation and localization plugins for WordPress.<\/p>\n\n\n\n<p>You can get it installed straight from your <a href=\"https:\/\/colorlib.com\/wp\/wordpress-admin-dashboard-themes-plugins\/\">WordPress dashboard<\/a>. Simply go to <strong>Plugins \u2192 Add New<\/strong> and search for &#8220;TranslatePress.&#8221; Then, click on <strong>Install<\/strong> and <strong>Activate<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2022\/12\/install-TranslatePress.gif\" alt=\"How to install TranslatePress\" class=\"wp-image-1256968\" \/><\/figure>\n\n\n\n<p>TranslatePress allows you to do a lot more than just add a language switching module to your site. In fact, you can use it to add complete translations of your website content into hundreds of supported languages, optimize for multilingual SEO, plus also enable automatic translations based on tools like <a href=\"https:\/\/translatepress.com\/deepl-vs-google-translate-comparison\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google Translate or DeepL<\/a>.<\/p>\n\n\n\n<p>But let&#8217;s focus just on the plugin&#8217;s language switching ability. Here&#8217;s how to set that up:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-pick-your-languages\">Pick your languages<\/h3>\n\n\n\n<p>First things first, you&#8217;ll need to select the languages in which you want to display your site&#8217;s content. In the free version of TranslatePress, you can pick one additional language. To set this, go to <strong>Settings \u2192 TranslatePress<\/strong>, and use the section marked in the image:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2019\/11\/translatepress-choose-languages-1024x717.png\" alt=\"Adding languages to TranslatePress\" class=\"wp-image-1108354\" \/><\/figure>\n\n\n\n<p>Click on <strong>Save Changes<\/strong> when done.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-choose-your-language-switcher\">Choose your language switcher<\/h3>\n\n\n\n<p>TranslatePress allows you to pick from three available types of language switchers. Actually, you can use all three of them at the same time.<\/p>\n\n\n\n<p>You&#8217;ll find those language switchers in <strong>Settings \u2192 TranslatePress<\/strong>, at the very bottom of the page:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2023\/03\/language-switcher-options-1024x425.png\" alt=\"Switcher options available\" class=\"wp-image-1267619\" \/><\/figure>\n\n\n\n<p>Here&#8217;s what they are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Shortcode<\/strong> &#8211; this type of language switcher is the most versatile since you can include it in any post, page or widget. More info on how to do that below.<\/li>\n\n\n\n<li><strong>Menu item<\/strong> &#8211; quite straightforward, this option allows you to add a language switcher link in your site menus.<\/li>\n\n\n\n<li><strong>Floating language selection<\/strong> &#8211; this is the most fun and customizable type of language switcher. It&#8217;s a block that&#8217;s going to float next to your site content and always remain visible.<\/li>\n<\/ul>\n\n\n\n<p>For each of these switchers, you can pick how you&#8217;d like them to be displayed. The options are:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2023\/03\/switcher-options.png\" alt=\"More switcher options\" class=\"wp-image-1267620\" \/><\/figure>\n\n\n\n<p>The nice thing is that you don&#8217;t have to go for one setting site-wide, but can instead choose to have one type of switcher active as a menu link and another inside a floating block. It&#8217;s all up to you!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-use-the-language-switcher-shortcode\">How to use the language switcher shortcode<\/h3>\n\n\n\n<p>As we said above, the <em>shortcode<\/em> language switcher is the most versatile since you can put it basically anywhere you like.<\/p>\n\n\n\n<p>For example, you can go to your site&#8217;s <strong>Widgets<\/strong> panel, pick a widget area, and add a <em>shortcode<\/em> block to it. Like so:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2023\/03\/shortcode-add-1024x530.png\" alt=\"Adding a switcher via shortcode\" class=\"wp-image-1267621\" width=\"735\" height=\"380\" \/><\/figure>\n\n\n\n<p>Next, put <code>[language-switcher]<\/code> in that shortcode block and save the settings.<\/p>\n\n\n\n<p>With that done, you will see the language switcher in action in the specific widget area you&#8217;ve added it to.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-add-a-language-switcher-to-your-site-menu\">How to add a language switcher to your site menu<\/h3>\n\n\n\n<p>If you&#8217;re familiar with WordPress interfaces and how site menus work, then you&#8217;re going to be right at home with adding a language switcher to those menus.<\/p>\n\n\n\n<p>Simply go to <strong>Appearance \u2192 Menus<\/strong>, pick the menu you want to work with, and then add the language switcher by selecting the options from the list:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/Screenshot-04-01-2023-22.47.38-1024x554.png\" alt=\"WordPress language switcher in a menu\" class=\"wp-image-344706\" srcset=\"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/Screenshot-04-01-2023-22.47.38-1024x554.png 1024w, https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/Screenshot-04-01-2023-22.47.38-338x183.png 338w, https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/Screenshot-04-01-2023-22.47.38-768x416.png 768w, https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/Screenshot-04-01-2023-22.47.38.png 1319w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>By adding the <em>Current Language<\/em> as an item to your menu, and then the extra languages as subitems to that, your front end will display a switcher in the form of a dropdown, like so:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"230\" height=\"219\" src=\"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/Language-switcher-menu-dropdown.png\" alt=\"Dropdown language switcher\" class=\"wp-image-344707\" \/><\/figure>\n\n\n\n<p>Alternatively, you can opt to display the opposite language from the one being shown on the site if you don&#8217;t want a dropdown. This only works for bilingual websites, where there are only 2 options to choose from. To do this, add the Opposite Language item to your menu (with no subitems), and your visitors will be able to switch languages with just one click.<\/p>\n\n\n\n<p>Click on <strong>Save Menu<\/strong> when done.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-add-a-floating-language-switcher\">How to add a floating language switcher<\/h3>\n\n\n\n<p>This last type of the language switcher is actually the easiest to add&#8230; that&#8217;s because you&#8217;ve actually already done it when adjusting the main options in <strong>Settings \u2192 TranslatePress<\/strong>. This was the option:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/translatepress.com\/wp-content\/uploads\/2023\/03\/floating-switcher-option.png\" alt=\"WordPress language switcher that's floating\" class=\"wp-image-1267623\" \/><\/figure>\n\n\n\n<p>You can use the drop-downs here to select where you&#8217;d like your WordPress language switcher to appear and what you want it to look like. You&#8217;ll be able to see the switcher in action on the front end of your site, on every page of your website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-s-next\">What&#8217;s next?<\/h2>\n\n\n\n<p>That&#8217;s it when it comes to how to add a basic language switcher to your WordPress website, but you can actually take it a lot further!<\/p>\n\n\n\n<p>For once, remember when we mentioned you can have the language switch automatically to match the system settings of your visitor? You can do that with TranslatePress add-ons (<a href=\"https:\/\/translatepress.com\/docs\/addons\/automatic-user-language-detection\/\" target=\"_blank\" rel=\"noreferrer noopener\">this one specifically<\/a>).<\/p>\n\n\n\n<p>If you&#8217;re interested in what else you can do to make your site multilingual, let us know in the comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Turning your WordPress website multilingual can be a great way to reach new audiences. It&#8217;s also one of the top methods to make sure that you always present your content, offers, or services in a language that matches the reader&#8217;s preferences hand-in-glove. There&#8217;s just one problem with that &#8211; or a challenge, rather &#8211; how&hellip;<\/p>\n","protected":false},"author":59312,"featured_media":344777,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"wordpress language switcher","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Learn how to easily add a WordPress language switcher to your multilingual site using a user-friendly plugin.","footnotes":""},"categories":[10],"tags":[],"post_series":[],"class_list":{"2":"type-post","3":"status-publish","6":"hentry","7":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Add a WordPress Language Switcher to Your Multilingual Website - Colorlib<\/title>\n<meta name=\"description\" content=\"Learn how to easily add a WordPress language switcher to your multilingual site using a user-friendly plugin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add a WordPress Language Switcher to Your Multilingual Website - Colorlib\" \/>\n<meta property=\"og:description\" content=\"Learn how to easily add a WordPress language switcher to your multilingual site using a user-friendly plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/\" \/>\n<meta property=\"og:site_name\" content=\"Colorlib\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/colorlib\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-03T13:17:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-03T15:59:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/wordpress-language-switcher.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Flavia Mezzetti\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@colorlib\" \/>\n<meta name=\"twitter:site\" content=\"@colorlib\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Flavia Mezzetti\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/\"},\"author\":{\"name\":\"Flavia Mezzetti\",\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/#\\\/schema\\\/person\\\/720c6c60d8ce43ea8eb1dc4c07a04d2a\"},\"headline\":\"How to Add a WordPress Language Switcher to Your Multilingual Website\",\"datePublished\":\"2023-04-03T13:17:33+00:00\",\"dateModified\":\"2023-04-03T15:59:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/\"},\"wordCount\":2227,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/wordpress-language-switcher.png\",\"articleSection\":[\"Tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/\",\"url\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/\",\"name\":\"How to Add a WordPress Language Switcher to Your Multilingual Website - Colorlib\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/wordpress-language-switcher.png\",\"datePublished\":\"2023-04-03T13:17:33+00:00\",\"dateModified\":\"2023-04-03T15:59:34+00:00\",\"description\":\"Learn how to easily add a WordPress language switcher to your multilingual site using a user-friendly plugin.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/#primaryimage\",\"url\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/wordpress-language-switcher.png\",\"contentUrl\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/wordpress-language-switcher.png\",\"width\":1200,\"height\":600,\"caption\":\"How to Add a WordPress Language Switcher to Your Multilingual Website\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wordpress-language-switcher\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial\",\"item\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/category\\\/tutorial\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Add a WordPress Language Switcher to Your Multilingual Website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/#website\",\"url\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/\",\"name\":\"Colorlib\",\"description\":\"WordPress tutorials, theme reviews, and web design inspiration. Free themes and 1,000+ HTML templates from Colorlib.\",\"publisher\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/#organization\",\"name\":\"Colorlib\",\"url\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/colorlib-logo-top-1.png\",\"contentUrl\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/colorlib-logo-top-1.png\",\"width\":800,\"height\":400,\"caption\":\"Colorlib\"},\"image\":{\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/colorlib\",\"https:\\\/\\\/x.com\\\/colorlib\",\"https:\\\/\\\/www.instagram.com\\\/colorlib\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/colorlib\",\"https:\\\/\\\/youtube.com\\\/c\\\/Colorlib\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/#\\\/schema\\\/person\\\/720c6c60d8ce43ea8eb1dc4c07a04d2a\",\"name\":\"Flavia Mezzetti\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b637fc3c658857a3b5cfdbe98d2ff52b404c4af2fc98afd5cfee1d62bda2b2d0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b637fc3c658857a3b5cfdbe98d2ff52b404c4af2fc98afd5cfee1d62bda2b2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b637fc3c658857a3b5cfdbe98d2ff52b404c4af2fc98afd5cfee1d62bda2b2d0?s=96&d=mm&r=g\",\"caption\":\"Flavia Mezzetti\"},\"url\":\"https:\\\/\\\/colorlib.com\\\/wp\\\/author\\\/flavia\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add a WordPress Language Switcher to Your Multilingual Website - Colorlib","description":"Learn how to easily add a WordPress language switcher to your multilingual site using a user-friendly plugin.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/","og_locale":"en_US","og_type":"article","og_title":"How to Add a WordPress Language Switcher to Your Multilingual Website - Colorlib","og_description":"Learn how to easily add a WordPress language switcher to your multilingual site using a user-friendly plugin.","og_url":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/","og_site_name":"Colorlib","article_publisher":"https:\/\/www.facebook.com\/colorlib","article_published_time":"2023-04-03T13:17:33+00:00","article_modified_time":"2023-04-03T15:59:34+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/wordpress-language-switcher.png","type":"image\/png"}],"author":"Flavia Mezzetti","twitter_card":"summary_large_image","twitter_creator":"@colorlib","twitter_site":"@colorlib","twitter_misc":{"Written by":"Flavia Mezzetti","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/#article","isPartOf":{"@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/"},"author":{"name":"Flavia Mezzetti","@id":"https:\/\/colorlib.com\/wp\/#\/schema\/person\/720c6c60d8ce43ea8eb1dc4c07a04d2a"},"headline":"How to Add a WordPress Language Switcher to Your Multilingual Website","datePublished":"2023-04-03T13:17:33+00:00","dateModified":"2023-04-03T15:59:34+00:00","mainEntityOfPage":{"@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/"},"wordCount":2227,"commentCount":0,"publisher":{"@id":"https:\/\/colorlib.com\/wp\/#organization"},"image":{"@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/#primaryimage"},"thumbnailUrl":"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/wordpress-language-switcher.png","articleSection":["Tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/","url":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/","name":"How to Add a WordPress Language Switcher to Your Multilingual Website - Colorlib","isPartOf":{"@id":"https:\/\/colorlib.com\/wp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/#primaryimage"},"image":{"@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/#primaryimage"},"thumbnailUrl":"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/wordpress-language-switcher.png","datePublished":"2023-04-03T13:17:33+00:00","dateModified":"2023-04-03T15:59:34+00:00","description":"Learn how to easily add a WordPress language switcher to your multilingual site using a user-friendly plugin.","breadcrumb":{"@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/#primaryimage","url":"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/wordpress-language-switcher.png","contentUrl":"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/wordpress-language-switcher.png","width":1200,"height":600,"caption":"How to Add a WordPress Language Switcher to Your Multilingual Website"},{"@type":"BreadcrumbList","@id":"https:\/\/colorlib.com\/wp\/wordpress-language-switcher\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/colorlib.com\/wp\/"},{"@type":"ListItem","position":2,"name":"Tutorial","item":"https:\/\/colorlib.com\/wp\/category\/tutorial\/"},{"@type":"ListItem","position":3,"name":"How to Add a WordPress Language Switcher to Your Multilingual Website"}]},{"@type":"WebSite","@id":"https:\/\/colorlib.com\/wp\/#website","url":"https:\/\/colorlib.com\/wp\/","name":"Colorlib","description":"WordPress tutorials, theme reviews, and web design inspiration. Free themes and 1,000+ HTML templates from Colorlib.","publisher":{"@id":"https:\/\/colorlib.com\/wp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/colorlib.com\/wp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/colorlib.com\/wp\/#organization","name":"Colorlib","url":"https:\/\/colorlib.com\/wp\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/colorlib.com\/wp\/#\/schema\/logo\/image\/","url":"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/colorlib-logo-top-1.png","contentUrl":"https:\/\/colorlib.com\/wp\/wp-content\/uploads\/sites\/2\/colorlib-logo-top-1.png","width":800,"height":400,"caption":"Colorlib"},"image":{"@id":"https:\/\/colorlib.com\/wp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/colorlib","https:\/\/x.com\/colorlib","https:\/\/www.instagram.com\/colorlib\/","https:\/\/www.linkedin.com\/company\/colorlib","https:\/\/youtube.com\/c\/Colorlib"]},{"@type":"Person","@id":"https:\/\/colorlib.com\/wp\/#\/schema\/person\/720c6c60d8ce43ea8eb1dc4c07a04d2a","name":"Flavia Mezzetti","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b637fc3c658857a3b5cfdbe98d2ff52b404c4af2fc98afd5cfee1d62bda2b2d0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b637fc3c658857a3b5cfdbe98d2ff52b404c4af2fc98afd5cfee1d62bda2b2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b637fc3c658857a3b5cfdbe98d2ff52b404c4af2fc98afd5cfee1d62bda2b2d0?s=96&d=mm&r=g","caption":"Flavia Mezzetti"},"url":"https:\/\/colorlib.com\/wp\/author\/flavia\/"}]}},"_links":{"self":[{"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/posts\/344681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/users\/59312"}],"replies":[{"embeddable":true,"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/comments?post=344681"}],"version-history":[{"count":4,"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/posts\/344681\/revisions"}],"predecessor-version":[{"id":344792,"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/posts\/344681\/revisions\/344792"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/media\/344777"}],"wp:attachment":[{"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/media?parent=344681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/categories?post=344681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/tags?post=344681"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/colorlib.com\/wp\/wp-json\/wp\/v2\/post_series?post=344681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}