{"id":167701,"date":"2019-09-22T13:00:31","date_gmt":"2019-09-22T13:00:31","guid":{"rendered":"https:\/\/premium.wpmudev.org\/blog\/?p=167701"},"modified":"2022-03-08T04:46:48","modified_gmt":"2022-03-08T04:46:48","slug":"multilingual-wordpress-site-multisite","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/multilingual-wordpress-site-multisite\/","title":{"rendered":"The No-Plugin Guide for a Multilingual WordPress Site Using Multisite"},"content":{"rendered":"<p>Don\u2019t let the limits of language limit your website\u2019s reach on the World Wide Web. People from all over the world visit your website. If you\u2019re serving content in only one language, you\u2019re pushing many interested visitors away.<\/p>\n<p>Having a multilingual site has its perks. It lets you connect with an international audience and bring in new customers. A multi-language site also gives you a competitive edge. If there\u2019s a potential multilingual market for your business, and your competitors aren\u2019t taking advantage of that, you definitely need to go for it!<\/p>\n<blockquote><p>&#8220;Those who know nothing of foreign languages know nothing of their own.&#8221; \u2014 Johann Wolfgang von Goethe<\/p><\/blockquote>\n<video loop muted autoplay playsinline class='dev-html5-video'><source src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/09\/No-Plugin-Multilingual-WordPress-Site-Using-Multisite.webm\" type=\"video\/webm\"><source src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/09\/No-Plugin-Multilingual-WordPress-Site-Using-Multisite.mp4\" type=\"video\/mp4\"><\/video>\n<p style=\"text-align: center;\">Create a network of your site in different languages.<\/p>\n<p><small>Creating a multilingual WordPress site isn\u2019t hard with so many plugins out there.<\/small><\/p>\n<p>But not so fast, my plugin-addicted friends! For this feat, I\u2019ve moved away from multilingual plugins towards the <em>Multisite<\/em> of things.<\/p>\n<p>A WordPress Multisite is like a network of many individual WordPress sites, all distinct yet connected together by a single WordPress core. This means that you don\u2019t have to fuss about endless WordPress configurations to add or tweak a new language.<\/p>\n<p>The power of building a plugin-less multilingual site lies in WordPress Multisite.<\/p>\n<p>In this post, you\u2019ll learn how to create your own multilingual WordPress site without plugins&#8230;from scratch!<\/p>\n<p>And I promise it\u2019ll be as easy as pie. Continue reading, or jump ahead using these links:<\/p>\n<ul>\n<li><a href=\"#creating-a-word-press-multisite-with-subdomain\">Creating A WordPress Multisite With Subdomains<\/a><\/li>\n<li><a href=\"#using-subdomains-for-multilingual-sites\">Using Subdomains for Multilingual Sites<\/a><\/li>\n<li><a href=\"#setting-up-a-new-language-site\">Setting Up A New Language Site<\/a><\/li>\n<li><a href=\"#installing-theme-adding-content\">Installing Your Theme And Adding Content<\/a><\/li>\n<li><a href=\"#translating-content\">Translating Your Content<\/a><\/li>\n<li><a href=\"#configuring-custom-menus\">Configuring Custom Menus<\/a><\/li>\n<\/ul>\n<h2 id=\"creating-a-word-press-multisite-with-subdomains\">Creating A WordPress Multisite With Subdomains<\/h2>\n<p>WordPress Multisite lets you create multiple sites using the same installation. I\u2019ll be implementing a French version (sacrilege!) of my website here, so I\u2019ll be coding along with you.<\/p>\n<p>Need help with setting up WordPress multisite subdomains? Go through our <a href=\"https:\/\/wpmudev.com\/blog\/ultimate-guide-multisite\/\" target=\"_blank\" rel=\"noopener\">in-depth Multisite guide<\/a> to get all caught up.<\/p>\n<h2 id=\"using-subdomains-for-multilingual-sites\">Using Subdomains for Multilingual Sites<\/h2>\n<p>After setting up your Multisite, the next step is to set up a subdomain. A subdomain is part of your parent domain, while the subdirectory is a folder within it.<\/p>\n<p>For instance, <code>fr.ioanadragnef.com<\/code> is a subdomain, while <code>ioanadragnef.com\/fr<\/code> is a subdirectory. If you need a quick refresher, we\u2019ve covered the <a href=\"https:\/\/wpmudev.com\/blog\/multisite-subdomains-subdirectories\/\" target=\"_blank\" rel=\"noopener\">differences between Multisite subdomains vs. subdirectories<\/a> in another post.<\/p>\n<p>I\u2019ll set up my website so that my French users can see their language code as a subdomain (i.e. <code>fr.ioanadragnef.com<\/code>). And since I have set my WordPress site up for over a month, I have to use the subdomain option. However, this restriction is only for the initial Multisite setup. You can easily <a href=\"https:\/\/wordpress.org\/support\/article\/multisite-network-administration\/#switching-network-types\" rel=\"noopener\" target=\"_blank\">switch between the network types<\/a> afterward.<\/p>\n<p>You can set up a subdomain from either your hosting provider or from within WordPress. If you do it from within WordPress, <a href=\"https:\/\/wpmudev.com\/blog\/wordpress-multisite-masterclass-activation-configuration\/#subdomains-with-wildcard\" target=\"_blank\" rel=\"noopener\">you must change some DNS records to allow creation of wildcard subdomains<\/a>.<\/p>\n<h2 id=\"setting-up-a-new-language-site\">Setting Up A New Language Site<\/h2>\n<p>I will create a French version of my site by going to <strong>My Sites &gt; Network Admin &gt; Sites<\/strong>, and selecting <strong>Add New<\/strong>.<\/p>\n<p>Enter the fields at the prompt and choose a subdomain for your new site. If you\u2019re making a multilingual WordPress site, it makes sense to have the subdomain be the language code (e.g. fr for French), but you can make it whatever you want.<\/p>\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-600x600 size-600x600\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/09\/multilingualmultisite-newsite-1.png\" alt=\"Multilingual Multisite new site\" width=\"600\" height=\"370\" \/><figcaption class=\"wp-caption-text\">Add your chosen language subdomain to your new site.<\/figcaption><\/figure>\n<p>Be careful not to change the Site Language option here if you don\u2019t speak the language. This will only change the language of your admin dashboard.<\/p>\n<p>Once you\u2019ve added the site, you\u2019ll see it in the <b>My Sites<\/b> drop-down menu. You can manage it the same way you do the other by adding plugins, themes, and content.<\/p>\n<h2 id=\"installing-theme-adding-content\"><b>Installing<\/b> Your<b> Theme And Adding Content<\/b><\/h2>\n<p>Once you\u2019ve configured your subdomain, you\u2019ll want to install the theme of your main website to your other-language site.<\/p>\n<p>Remember, both the sites have to look as identical to each other as possible, which means using the same theme, brand colors, plugins, menus, etc. This way it won\u2019t be confusing to your visitors when they switch the language.<\/p>\n<p>The next step is to translate and add my content.<\/p>\n<p>My website is fairly succinct, so luckily there\u2019s not much to translate. However, if you\u2019ve got a lot of pages, there are shortcuts\u2014you can use the Multisite Post Duplicator or NS Cloner plugins.<\/p>\n<ul>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/wordpress.org\/plugins\/wp-multisite-content-copier\/\" rel=\"noopener\" target=\"_blank\">Multisite Content Copier\/Updater<\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/wordpress.org\/plugins\/ns-cloner-site-copier\/\" rel=\"noopener\" target=\"_blank\">NS Cloner<\/a><\/li>\n<\/ul>\n<p>Now, I know I mentioned earlier that this will be a no-plugin multilingual WordPress site, but we\u2019ve completed that already. The plugins recommended above are for helping you with laying down your translated pages and posts.<\/p>\n<h2 id=\"translating-content\"><b>Translating<\/b> Your<b> Content<\/b><\/h2>\n<p>Now you have a Multisite, a subdomain, you\u2019ve configured your content and website structure. It\u2019s time to get translatin\u2019!<\/p>\n<p>Even with significant advances in machine translation tech, there\u2019s still no match for human translators. If you want details and nuance in your translations (and you should), I recommend getting professional help. Upwork and Fiverr are some platforms where you can hire skilled translators in various international languages at a great price.<\/p>\n<p>But if you still want to go for automated translations, there are <a href=\"https:\/\/wpmudev.com\/blog\/top-6-translation-plugins-for-your-wordpress-site\/\" target=\"_blank\" rel=\"noopener\">a few WordPress translation plugins<\/a> that you can use to get it done easily.<\/p>\n<h2 id=\"configuring-custom-menus\">Configuring Custom Menus<\/h2>\n<p>Once your website is ready and translated, all you have to do is add a link to it in your original-language website (i.e. your main network site). This way, your readers can switch back and forth between the various languages available!<\/p>\n<p>To do this, we\u2019ll be creating a custom menu. Since I\u2019m only using a single language, I\u2019ll link to the French version of my site in my menu.<\/p>\n<p>To create a custom link within your website\u2019s primary menu, go to <b>Appearance &gt; Menus<\/b>, and then edit your main menu.<\/p>\n<p>Under <i>Custom Links<\/i>, enter the URL of the subdomain and the navigation label. Now add the custom link to the menu via the <b>Add to Menu<\/b> button.<\/p>\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-600x600 size-600x600\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2017\/09\/multilingualmultisite-customlinks-1.png\" alt=\"Custom links\" width=\"600\" height=\"546\" \/><figcaption class=\"wp-caption-text\">Custom links within your existing site menu are best if you&#8217;re only using a single language.<\/figcaption><\/figure>\n<h3>Custom Menu For Multiple Languages<\/h3>\n<p>If you want to create a menu that contains multiple languages, create a new menu, and add multiple custom links with the various language subdomains.<\/p>\n<p>For example, if I want a <b>Languages<\/b> menu that has both French and Spanish, first I\u2019ll create a new Languages menu.<\/p>\n<p>I\u2019ll then add my French and Spanish subdomains under different custom links, and use the name of the language as the navigation label.<\/p>\n<p>Congratulations! You\u2019ve now built a multilingual WordPress Multisite with no plugins.<\/p>\n<h2>Conclusion<\/h2>\n<p>A multilingual site enables you to reach more readers than ever before. It makes you look more professional and open you up to new opportunities. And since you\u2019ve created your multilingual site via Multisite, you have more control over your sites than if you\u2019d just used a plugin.<\/p>\n<p>Using Multisite to do it has many advantages for you, the main of which is giving you ultimate control over your site. It allows you to create, tweak, and present your translated content however you want.<\/p>\n<p>The trick here to avoid multilingual plugins is to use a Multisite along with a custom menu to direct your readers to the right subsites.<\/p>\n<p>It\u2019s never too late to add a new language to your site. After all, in the game of tongues, you either Spanish or Vanish!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Don\u2019t let the limits of language limit your website\u2019s reach on the World Wide Web. People from all over the world visit your website. If you\u2019re serving content in only one language, you\u2019re pushing many interested visitors away. Having a multilingual site has its perks. It lets you connect with an international audience and bring [&hellip;]<\/p>\n","protected":false},"author":383901,"featured_media":167986,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[1117,263],"tags":[11184,9958,11176,64],"tutorials_categories":[],"class_list":["post-167701","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-multisite","category-tutorials","tag-multilingual-websites","tag-multisite-2","tag-subdomains","tag-translation"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/167701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/383901"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=167701"}],"version-history":[{"count":21,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/167701\/revisions"}],"predecessor-version":[{"id":206869,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/167701\/revisions\/206869"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/167986"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=167701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=167701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=167701"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=167701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}