{"id":381,"date":"2021-07-30T15:18:41","date_gmt":"2021-07-30T15:18:41","guid":{"rendered":"https:\/\/leverage.codings.dev\/docs\/?p=381"},"modified":"2021-07-30T15:21:19","modified_gmt":"2021-07-30T15:21:19","slug":"multi-language-website-with-gtranslate-plugin","status":"publish","type":"post","link":"https:\/\/leverage.codings.dev\/docs\/multi-language-website-with-gtranslate-plugin\/","title":{"rendered":"Multi-language website with GTranslate plugin"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"381\" class=\"elementor elementor-381\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4b7c3d61 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"4b7c3d61\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-79e519f3\" data-id=\"79e519f3\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-44b1f2c9 elementor-widget elementor-widget-text-editor\" data-id=\"44b1f2c9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h4>Overview<\/h4><p>As much as modern browsers currently provide instant translation to users, it can be useful to have this feature directly in the website navigation bar.<\/p><p>In this article we will show you how to do this with a free plugin that is very simple to use. The famous <a href=\"https:\/\/wordpress.org\/plugins\/gtranslate\/\" target=\"_blank\" rel=\"noopener\">GTranslate<\/a>.<\/p><h4>Installing Plugins<\/h4><p>From Dashboard go to <span style=\"text-decoration: underline;\">Plugins &gt; Add New<\/span>, look for GTranslate, install and activate it.<\/p><p>Also install and activate the <a href=\"https:\/\/br.wordpress.org\/plugins\/shortcode-in-menus\/\" target=\"_blank\" rel=\"noopener\">Shortcode in Menus<\/a> plugin. It will be useful to add the &#8220;Language Selector&#8221; in the navigation bar.<\/p><h4>Configuring Gtranslate<\/h4><p>From Dashboard go to <span style=\"text-decoration: underline;\">Settings &gt; GTranslate<\/span> and configure as desired. Where it says &#8220;Widget look&#8221; we recommend that you select &#8220;Flags&#8221;. Check the checkboxes for the languages you need and save the settings.<\/p><p><em>If you need more information see the <a href=\"https:\/\/wordpress.org\/support\/plugin\/gtranslate\/\" target=\"_blank\" rel=\"noopener\">plugin support page<\/a>.<\/em><\/p><h4>Adding a Language Selector<\/h4><p>From Dashboard go to <span style=\"text-decoration: underline;\">Appearance &gt; Menu<\/span> and add a menu item of type &#8220;Shortcode&#8221;, in it type a title and in the larger field type [gtranslate]. Save the menu and it will appear on your website.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f59d827 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f59d827\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-077ddb4\" data-id=\"077ddb4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-53c8514 elementor-widget elementor-widget-image\" data-id=\"53c8514\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"460\" src=\"https:\/\/leverage.codings.dev\/docs\/wp-content\/uploads\/2021\/07\/gtranslate-menu-item-1024x604.png\" class=\"attachment-large size-large\" alt=\"\" srcset=\"https:\/\/leverage.codings.dev\/docs\/wp-content\/uploads\/2021\/07\/gtranslate-menu-item-1024x604.png 1024w, https:\/\/leverage.codings.dev\/docs\/wp-content\/uploads\/2021\/07\/gtranslate-menu-item-300x177.png 300w, https:\/\/leverage.codings.dev\/docs\/wp-content\/uploads\/2021\/07\/gtranslate-menu-item-768x453.png 768w, https:\/\/leverage.codings.dev\/docs\/wp-content\/uploads\/2021\/07\/gtranslate-menu-item.png 1276w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bc7e505 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"bc7e505\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-419514e\" data-id=\"419514e\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f0fde81 elementor-widget elementor-widget-text-editor\" data-id=\"f0fde81\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h4>Styling the flags<\/h4><p>To get a better appearance of the flags, we have prepared the Custom CSS that can be useful.<\/p><p>From Dashboard go to <span style=\"text-decoration: underline;\">Theme Settings &gt; Advanced<\/span> and add it to <span style=\"text-decoration: underline;\">Custom CSS<\/span>:<\/p><div><pre>.navbar-nav .glink {<br \/> \u00a0margin:\u00a00\u00a05px;<br \/>}<br \/><br \/>.menu .menu-item-object-gs_sim {<br \/> \u00a0display:\u00a0flex;<br \/> \u00a0padding:\u00a015px\u00a00;<br \/>}<\/pre><h4>Conclusion<\/h4><p>We hope this helps somehow users of the [Leverage] theme and also other themes to get multi-lingual sites incredibly easily.<\/p><p>If you have any questions or suggestions send us a message to <a href=\"mailto:adm.codings@gmail.com\">adm.codings@gmail.com<\/a><\/p><p>Greetings \ud83d\ude42<\/p><p>.<\/p><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Overview As much as modern browsers currently provide instant translation to users, it can be useful to have this feature&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,12],"tags":[],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-forms","category-theme-settings"],"acf":[],"_links":{"self":[{"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":6,"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":388,"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/posts\/381\/revisions\/388"}],"wp:attachment":[{"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leverage.codings.dev\/docs\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}