{"id":80791,"date":"2021-03-09T18:15:51","date_gmt":"2021-03-09T12:45:51","guid":{"rendered":"https:\/\/wpastra.com\/?post_type=docs&#038;p=80791"},"modified":"2021-07-21T18:44:58","modified_gmt":"2021-07-21T13:14:58","slug":"using-language-switcher","status":"publish","type":"docs","link":"https:\/\/wpastra.com\/docs\/using-language-switcher\/","title":{"rendered":"Using Language Switcher Element with WPML"},"content":{"rendered":"\n<p><strong>Astra Pro <\/strong>3.1 introduced a new element in the Header Footer Builder &#8211; the option to add a Language Switcher. <\/p>\n\n\n\n<p>This feature allows you to add navigation for your multilingual website in the header or footer. This article will help you understand how to use it with WPML and other third-party translation plugins. <\/p>\n\n\n\n<p>Below, you will find the steps to add and configure the Language Switcher element in the header. You can follow similar steps to add it to the footer. <\/p>\n\n\n\n<p><strong>Step 1 <\/strong>&#8211; In the customizer, visit Header Builder. Click on the section where you wish to add navigation for different languages. From the element box, click on the Language Switcher element. <\/p>\n\n\n\n<p><strong>Step 2 <\/strong>&#8211; When you open the Language Switcher settings you will observe two options:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>WPML<\/li><li>Custom<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"language-switcher-add-initial-configure\" src=\"https:\/\/player.vimeo.com\/video\/525115438?h=a41da92926&amp;dnt=1&amp;app_id=122963\" width=\"500\" height=\"271\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<div class=\"wp-block-uagb-inline-notice uagb-inline_notice__outer-wrap uagb-inline_notice__align-left uagb-block-ec1f655e\"><h4 class=\"uagb-notice-title\">Note:<\/h4><div class=\"uagb-notice-text\"><p>The name of the header &#8220;Logo&#8221; element was modified and the name you would see in your Header Builder is now &#8220;Site Identity &amp; Logo&#8221;  <\/p><\/div><\/div>\n\n\n\n<p>You will only see this option if you have WPML active on your website. <\/p>\n\n\n\n<p>Language Switcher has in-built support for the WPML plugin. It will automatically fetch available languages from WPML and display them as navigation. <\/p>\n\n\n\n<p>If you are using s plugin other than WPML, you can choose the custom option and add a URL for the translated version of the website. <\/p>\n\n\n\n<p><strong>Language Switcher with WPML<\/strong><\/p>\n\n\n\n<p>Once you add Language Switcher to the header, choose the type &#8211; WPML. <\/p>\n\n\n\n<p>This will automatically fetch the languages you added with WPML.<\/p>\n\n\n\n<p>If you wish to add more languages, you can add them with WPML settings. For this, visit Dashboard &gt; WPML &gt; Languages &gt; Site Languages &gt; Add \/ Remove languages. From the list of languages select the required ones and click on save. <\/p>\n\n\n\n<figure data-spectra-id=\"spectra-46a22089-428c-48a9-b958-f218a2a99a3d\" class=\"wp-block-image size-full\"><a href=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-wpml-languages.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1366\" height=\"786\" src=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-wpml-languages.png\" alt=\"Add \/ Remove Languages, WPML\" class=\"wp-image-97948\" srcset=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-wpml-languages.png 1366w, https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-wpml-languages-300x173.png 300w, https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-wpml-languages-1024x589.png 1024w, https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-wpml-languages-768x442.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/figure>\n\n\n\n<p>All selected languages from the step above will be available in your Header Builder with the Language Switcher. <\/p>\n\n\n\n<p>You can customize the look of the language navigation with following options:<\/p>\n\n\n\n<figure data-spectra-id=\"spectra-4e7c32f4-7eb2-44f6-aac8-76c3aba01fb7\" class=\"wp-block-image size-full\"><a href=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-language-switcher-wpml.png\"><img decoding=\"async\" width=\"1366\" height=\"786\" src=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-language-switcher-wpml.png\" alt=\"Astra Pro, the Language Switcher Element\" class=\"wp-image-97949\" srcset=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-language-switcher-wpml.png 1366w, https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-language-switcher-wpml-300x173.png 300w, https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-language-switcher-wpml-1024x589.png 1024w, https:\/\/wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-language-switcher-wpml-768x442.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Layout<\/strong>: You can either display all languages in a horizontal or vertical manner. Horizontal layout mostly applies well to the header while the vertical layout is often better suited for the footer. <\/li><li><strong>Show Country Flag<\/strong>: This will display flags for countries associated with the chosen language. It helps users to quickly spot the preferred language they are looking for. <\/li><li><strong>Show Name: <\/strong>This will display the full name for the language. <\/li><li><strong>Show Translated Name: <\/strong>This will display the translated names for all languages when a specific language is selected. For example &#8211; you added 4 languages, let us say English, French, German, and Hindi. When you select the German language, all languages will show their translated names in German. <\/li><li><strong>Show Language Code: <\/strong>This will display the language code for each language. For example &#8211; English (en), French (fr), German (de), and Hindi (hi). <\/li><\/ul>\n\n\n\n<p>Under the Design tab, you can manage spacing, typography, and the size of the items.  <\/p>\n\n\n\n<p><strong>Language Switcher with Other Translation Plugins<\/strong><\/p>\n\n\n\n<p>If you are using any plugin other than WPML, please follow the below steps to add language navigation: <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"language-switcher-demo-video (1)\" src=\"https:\/\/player.vimeo.com\/video\/525110374?h=c3ee1e3a16&amp;dnt=1&amp;app_id=122963\" width=\"500\" height=\"256\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<div class=\"wp-block-uagb-inline-notice uagb-inline_notice__outer-wrap uagb-inline_notice__align-left uagb-block-1a8f5a7b\"><h4 class=\"uagb-notice-title\">Note:<\/h4><div class=\"uagb-notice-text\"><p>The name of the header &#8220;Logo&#8221; element was modified and the name you would see in your Header Builder is now &#8220;Site Identity &amp; Logo&#8221;  <\/p><\/div><\/div>\n\n\n\n<p>Step 1 &#8211; Navigate to Customizer &gt; Header Builder &gt; Language Switcher. Here, select the language from the dropdown and click on the &#8220;Add Language&#8221; button. You can repeat this step for all languages you wish to add.<\/p>\n\n\n\n<p>Step 2 &#8211; Next, click on the language bar for a specific language. This will expand the language settings, allowing you to change its label (if needed) and set the appropriate URL. This URL is actually a translated version of your website (like https:\/\/www.yoursite.com\/en\/) and you can find it in your translation plugin. Just paste the URL there for the respective language. <\/p>\n\n\n\n<p>Step 3 &#8211; You can manage other things from the above settings like the horizontal\/vertical layout, show country flag, and display language name.<\/p>\n\n\n\n<p>Step 4 &#8211; Under the Design tab, you can manage the spacing, color, and typography for the items. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Astra Pro 3.1 introduced a new element in the Header Footer Builder &#8211; the option to add a Language Switcher. This feature allows you to add navigation for your multilingual website in the header or footer. This article will help you understand how to use it with WPML and other third-party translation plugins. Below, you [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":0,"template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"pfd_doc_title":"","spectra_gs_classes":"","footnotes":""},"docs_category":[1995],"docs_tag":[2071,2062,2051,2054,2081,2080,2079],"class_list":{"0":"post-80791","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-header-footer","6":"docs_tag-astra-pro","7":"docs_tag-footer-widget","8":"docs_tag-header-footer-builder","9":"docs_tag-header-widget","10":"docs_tag-language-switcher","11":"docs_tag-multilingual-website","12":"docs_tag-wpml"},"spectra_custom_meta":{"_edit_lock":["1626873299:70"],"_edit_last":["70"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_estimated-reading-time-minutes":["4"],"_yoast_wpseo_content_score":["60"],"_yoast_wpseo_primary_docs_category":["1995"],"_oembed_b50c7caa570f6800f650a0910d6225df":["<iframe title=\"language-switcher-demo-video (1)\" src=\"https:\/\/player.vimeo.com\/video\/525110374?dnt=1&amp;app_id=122963\" width=\"500\" height=\"256\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_b50c7caa570f6800f650a0910d6225df":["1626873263"],"_oembed_299e6f06aaa5ab6a485ca44ab3514e14":["<iframe title=\"language-switcher-add-initial-configure\" src=\"https:\/\/player.vimeo.com\/video\/525115438?dnt=1&amp;app_id=122963\" width=\"500\" height=\"271\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_299e6f06aaa5ab6a485ca44ab3514e14":["1626873263"],"_oembed_68d01a513143e4312915c84d1fb1c2ad":["<iframe title=\"language-switcher-add-initial-configure\" src=\"https:\/\/player.vimeo.com\/video\/525115438?dnt=1&amp;app_id=122963\" width=\"1200\" height=\"651\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_68d01a513143e4312915c84d1fb1c2ad":["1616008633"],"_oembed_3c596de1aca6b29e254065934dd6fa05":["<iframe title=\"language-switcher-demo-video (1)\" src=\"https:\/\/player.vimeo.com\/video\/525110374?dnt=1&amp;app_id=122963\" width=\"1200\" height=\"614\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_3c596de1aca6b29e254065934dd6fa05":["1616008633"],"_ht_kb_post_views_count":["11"],"_ht_kb_usefulness":["1"],"_ht_article_order_1995":["80791"],"wp_last_modified_info":["July 21, 2021 @ 6:44 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_yoast_wpseo_focuskw":["language switcher"],"_yoast_wpseo_title":["%%title%% - Multilingual Websites"],"_yoast_wpseo_metadesc":["Add language navigation to your multilingual website with Astra Pro. Use Language Switcher feature with WPML and other multilingual plugins"],"_yoast_wpseo_linkdex":["77"],"views":["22336"],"helpful":["5"],"unhelpful":["11"],"redirects":["9"],"pfd_related_docs":["a:5:{i:0;s:5:\"23674\";i:1;s:5:\"70152\";i:2;s:5:\"89779\";i:3;s:5:\"89887\";i:4;s:5:\"70194\";}"],"pfd_manual_related_docs":["1"],"rank_math_primary_docs_category":["1995"],"rank_math_title":["%title% - Multilingual Websites"],"rank_math_description":["Add language navigation to your multilingual website with Astra Pro. Use Language Switcher feature with WPML and other multilingual plugins"],"rank_math_focus_keyword":["language switcher"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["411"],"rank_math_internal_links_processed":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"3338b4be3709ba9c242b76b5aca5d504\";s:6:\"images\";a:1:{i:0;i:97948;}}"],"_trp_automatically_translated_slug_es_ES":["uso-del-conmutador-de-idiomas"],"_oembed_297a4560f08c98c9dd49ff101ad8801e":["<iframe title=\"language-switcher-add-initial-configure\" src=\"https:\/\/player.vimeo.com\/video\/525115438?h=a41da92926&amp;dnt=1&amp;app_id=122963\" width=\"500\" height=\"271\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write\"><\/iframe>"],"_oembed_time_297a4560f08c98c9dd49ff101ad8801e":["1714083991"],"_oembed_119d9489008f088fb0a53fc177cbe459":["<iframe title=\"language-switcher-demo-video (1)\" src=\"https:\/\/player.vimeo.com\/video\/525110374?h=c3ee1e3a16&amp;dnt=1&amp;app_id=122963\" width=\"500\" height=\"256\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write\"><\/iframe>"],"_oembed_time_119d9489008f088fb0a53fc177cbe459":["1714083991"],"_uag_page_assets":["a:9:{s:3:\"css\";s:21608:\".uagb-inline_notice__align-right{text-align:right}.uagb-inline_notice__align-right span.uagb-notice-dismiss{left:13px}.uagb-inline_notice__align-center{text-align:center}.uagb-inline_notice__align-center span.uagb-notice-dismiss{right:13px}.uagb-inline_notice__align-left{text-align:left}.uagb-inline_notice__align-left span.uagb-notice-dismiss{right:13px}.wp-block-uagb-inline-notice{width:100%;position:relative}.wp-block-uagb-inline-notice.uagb-notice__active{display:none}.wp-block-uagb-inline-notice .uagb-notice-title{margin:0;width:-moz-available;width:-webkit-fill-available;width:fill-available;display:inline-block}.wp-block-uagb-inline-notice .uagb-notice-text{margin-top:-3px;margin-bottom:0}.wp-block-uagb-inline-notice .uagb-notice-text p:last-child{margin-bottom:0}.wp-block-uagb-inline-notice .uagb-notice-text p:first-child{margin-top:0 !important}.wp-block-uagb-inline-notice span.uagb-notice-dismiss svg{width:16px;height:16px}.wp-block-uagb-inline-notice span.uagb-notice-dismiss{position:absolute;cursor:pointer;top:13px;opacity:0.8;padding:0;background:none;transition:0.3s ease}.wp-block-uagb-inline-notice.uagb-dismissable>svg{position:absolute;cursor:pointer;opacity:0.8;padding:0;background:none;transition:0.3s ease}.wp-block-uagb-inline-notice.uagb-dismissable button[type=\"button\"]{position:absolute;cursor:pointer;opacity:0.8;padding:0;background:none;transition:0.3s ease}.wp-block-uagb-inline-notice.uagb-inline_notice__align-right{text-align:right}.wp-block-uagb-inline-notice.uagb-inline_notice__align-right svg{left:13px}.wp-block-uagb-inline-notice.uagb-inline_notice__align-right button[type=\"button\"]{left:13px;top:13px;border:none;padding-inline:0;padding-block:0;line-height:0px}.wp-block-uagb-inline-notice.uagb-inline_notice__align-center{text-align:center}.wp-block-uagb-inline-notice.uagb-inline_notice__align-center svg{right:13px}.wp-block-uagb-inline-notice.uagb-inline_notice__align-center button[type=\"button\"]{right:13px;top:13px;border:none;padding-inline:0;padding-block:0;line-height:0px}.wp-block-uagb-inline-notice.uagb-inline_notice__align-left{text-align:left}.wp-block-uagb-inline-notice.uagb-inline_notice__align-left svg{right:13px}.wp-block-uagb-inline-notice.uagb-inline_notice__align-left button[type=\"button\"]{right:13px;top:13px;border:none;padding-inline:0;padding-block:0;line-height:0px}\n .uagb-block-ec1f655e.wp-block-uagb-inline-notice .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-ec1f655e .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;border: 2px solid #FFD54F;border-bottom-left-radius: 3px;border-bottom-right-radius: 3px;} .uagb-block-ec1f655e.uagb-dismissable button[type=\"button\"] svg{width: 16px;height: 16px;} .uagb-block-ec1f655e.uagb-dismissable > svg{width: 16px;height: 16px;} .uagb-block-ec1f655e .uagb-notice-title{background-color: #FFD54F;border-top-right-radius: 3px;border-top-left-radius: 3px;} .uagb-block-1a8f5a7b.wp-block-uagb-inline-notice .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-1a8f5a7b .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;border: 2px solid #FFD54F;border-bottom-left-radius: 3px;border-bottom-right-radius: 3px;} .uagb-block-1a8f5a7b.uagb-dismissable button[type=\"button\"] svg{width: 16px;height: 16px;} .uagb-block-1a8f5a7b.uagb-dismissable > svg{width: 16px;height: 16px;} .uagb-block-1a8f5a7b .uagb-notice-title{background-color: #FFD54F;border-top-right-radius: 3px;border-top-left-radius: 3px;}@media only screen and (max-width: 976px) { .uagb-block-ec1f655e .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-ec1f655e .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-1a8f5a7b .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-1a8f5a7b .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;}}@media only screen and (max-width: 767px) { .uagb-block-ec1f655e .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-ec1f655e .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-1a8f5a7b .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-1a8f5a7b .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;}}.uag-blocks-common-selector{z-index:var(--z-index-desktop) !important}@media (max-width: 976px){.uag-blocks-common-selector{z-index:var(--z-index-tablet) !important}}@media (max-width: 767px){.uag-blocks-common-selector{z-index:var(--z-index-mobile) !important}}\n.wp-block-uagb-container{display:flex;position:relative;box-sizing:border-box;transition-property:box-shadow;transition-duration:0.2s;transition-timing-function:ease}.wp-block-uagb-container .spectra-container-link-overlay{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10}.wp-block-uagb-container.uagb-is-root-container{margin-left:auto;margin-right:auto}.wp-block-uagb-container.alignfull.uagb-is-root-container .uagb-container-inner-blocks-wrap{display:flex;position:relative;box-sizing:border-box;margin-left:auto !important;margin-right:auto !important}.wp-block-uagb-container .wp-block-uagb-blockquote,.wp-block-uagb-container .wp-block-spectra-pro-login,.wp-block-uagb-container .wp-block-spectra-pro-register{margin:unset}.wp-block-uagb-container .uagb-container__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.wp-block-uagb-container .uagb-container__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.wp-block-uagb-container.uagb-layout-grid{display:grid;width:100%}.wp-block-uagb-container.uagb-layout-grid>.uagb-container-inner-blocks-wrap{display:inherit;width:inherit}.wp-block-uagb-container.uagb-layout-grid>.uagb-container-inner-blocks-wrap>.wp-block-uagb-container{max-width:unset !important;width:unset !important}.wp-block-uagb-container.uagb-layout-grid>.wp-block-uagb-container{max-width:unset !important;width:unset !important}.wp-block-uagb-container.uagb-layout-grid.uagb-is-root-container{margin-left:auto;margin-right:auto}.wp-block-uagb-container.uagb-layout-grid.uagb-is-root-container>.wp-block-uagb-container{max-width:unset !important;width:unset !important}.wp-block-uagb-container.uagb-layout-grid.alignwide.uagb-is-root-container{margin-left:auto;margin-right:auto}.wp-block-uagb-container.uagb-layout-grid.alignfull.uagb-is-root-container .uagb-container-inner-blocks-wrap{display:inherit;position:relative;box-sizing:border-box;margin-left:auto !important;margin-right:auto !important}body .wp-block-uagb-container>.uagb-container-inner-blocks-wrap>*:not(.wp-block-uagb-container):not(.wp-block-uagb-column):not(.wp-block-uagb-container):not(.wp-block-uagb-section):not(.uagb-container__shape):not(.uagb-container__video-wrap):not(.wp-block-spectra-pro-register):not(.wp-block-spectra-pro-login):not(.uagb-slider-container):not(.spectra-image-gallery__control-lightbox):not(.wp-block-uagb-info-box),body .wp-block-uagb-container>.uagb-container-inner-blocks-wrap,body .wp-block-uagb-container>*:not(.wp-block-uagb-container):not(.wp-block-uagb-column):not(.wp-block-uagb-container):not(.wp-block-uagb-section):not(.uagb-container__shape):not(.uagb-container__video-wrap):not(.wp-block-spectra-pro-register):not(.wp-block-spectra-pro-login):not(.uagb-slider-container):not(.spectra-container-link-overlay):not(.spectra-image-gallery__control-lightbox):not(.wp-block-uagb-lottie):not(.uagb-faq__outer-wrap){min-width:unset !important;width:100%;position:relative}body .ast-container .wp-block-uagb-container>.uagb-container-inner-blocks-wrap>.wp-block-uagb-container>ul,body .ast-container .wp-block-uagb-container>.uagb-container-inner-blocks-wrap>.wp-block-uagb-container ol,body .ast-container .wp-block-uagb-container>.uagb-container-inner-blocks-wrap>ul,body .ast-container .wp-block-uagb-container>.uagb-container-inner-blocks-wrap ol{max-width:-webkit-fill-available;margin-block-start:0;margin-block-end:0;margin-left:20px}.ast-plain-container .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .uagb-is-root-container.wp-block-uagb-container.alignwide{margin-left:auto;margin-right:auto}.uagb-container__shape{overflow:hidden;position:absolute;left:0;width:100%;line-height:0;direction:ltr}.uagb-container__shape-top{top:-3px}.uagb-container__shape-bottom{bottom:-3px}.uagb-container__shape.uagb-container__invert.uagb-container__shape-bottom,.uagb-container__shape.uagb-container__invert.uagb-container__shape-top{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-container__shape.uagb-container__shape-flip svg{transform:translateX(-50%) rotateY(180deg)}.uagb-container__shape svg{display:block;width:-webkit-calc(100% + 1.3px);width:calc(100% + 1.3px);position:relative;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-container__shape .uagb-container__shape-fill{-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}.uagb-container__shape.uagb-container__shape-above-content{z-index:9;pointer-events:none}.nv-single-page-wrap .nv-content-wrap.entry-content .wp-block-uagb-container.alignfull{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}@media only screen and (max-width: 767px){.wp-block-uagb-container .wp-block-uagb-advanced-heading{width:-webkit-fill-available}}.wp-block-uagb-image--align-none{justify-content:center}\n.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-top svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-top .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-bottom svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-bottom .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__video-wrap video{opacity: 1;}.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1200px);max-width: var(--inner-content-custom-width);width: 100%;flex-direction: column;align-items: center;justify-content: center;flex-wrap: nowrap;row-gap: 0px;column-gap: 0px;}.wp-block-uagb-container.uagb-block-debf2792{box-shadow: 0px 0px   #00000070 ;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;overflow: visible;order: initial;border-color: inherit;row-gap: 0px;column-gap: 0px;}@media only screen and (max-width: 976px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1024px);max-width: var(--inner-content-custom-width);width: 100%;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;order: initial;}}@media only screen and (max-width: 767px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 767px);max-width: var(--inner-content-custom-width);width: 100%;flex-wrap: wrap;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;order: initial;}}.wp-block-uagb-image{display:flex}.wp-block-uagb-image__figure{position:relative;display:flex;flex-direction:column;max-width:100%;height:auto;margin:0}.wp-block-uagb-image__figure img{height:auto;display:flex;max-width:100%;transition:box-shadow 0.2s ease}.wp-block-uagb-image__figure>a{display:inline-block}.wp-block-uagb-image__figure figcaption{text-align:center;margin-top:0.5em;margin-bottom:1em}.wp-block-uagb-image .components-placeholder.block-editor-media-placeholder .components-placeholder__instructions{align-self:center}.wp-block-uagb-image--align-left{text-align:left}.wp-block-uagb-image--align-right{text-align:right}.wp-block-uagb-image--align-center{text-align:center}.wp-block-uagb-image--align-full .wp-block-uagb-image__figure{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw;width:100vw;height:auto}.wp-block-uagb-image--align-full .wp-block-uagb-image__figure img{height:auto;width:100% !important}.wp-block-uagb-image--align-wide .wp-block-uagb-image__figure img{height:auto;width:100%}.wp-block-uagb-image--layout-overlay__color-wrapper{position:absolute;left:0;top:0;right:0;bottom:0;opacity:0.2;background:rgba(0,0,0,0.5);transition:opacity 0.35s ease-in-out}.wp-block-uagb-image--layout-overlay-link{position:absolute;left:0;right:0;bottom:0;top:0}.wp-block-uagb-image--layout-overlay .wp-block-uagb-image__figure:hover .wp-block-uagb-image--layout-overlay__color-wrapper{opacity:1}.wp-block-uagb-image--layout-overlay__inner{position:absolute;left:15px;right:15px;bottom:15px;top:15px;display:flex;align-items:center;justify-content:center;flex-direction:column;border-color:#fff;transition:0.35s ease-in-out}.wp-block-uagb-image--layout-overlay__inner.top-left,.wp-block-uagb-image--layout-overlay__inner.top-center,.wp-block-uagb-image--layout-overlay__inner.top-right{justify-content:flex-start}.wp-block-uagb-image--layout-overlay__inner.bottom-left,.wp-block-uagb-image--layout-overlay__inner.bottom-center,.wp-block-uagb-image--layout-overlay__inner.bottom-right{justify-content:flex-end}.wp-block-uagb-image--layout-overlay__inner.top-left,.wp-block-uagb-image--layout-overlay__inner.center-left,.wp-block-uagb-image--layout-overlay__inner.bottom-left{align-items:flex-start}.wp-block-uagb-image--layout-overlay__inner.top-right,.wp-block-uagb-image--layout-overlay__inner.center-right,.wp-block-uagb-image--layout-overlay__inner.bottom-right{align-items:flex-end}.wp-block-uagb-image--layout-overlay__inner .uagb-image-heading{color:#fff;transition:transform 0.35s, opacity 0.35s ease-in-out;transform:translate3d(0, 24px, 0);margin:0;line-height:1em}.wp-block-uagb-image--layout-overlay__inner .uagb-image-separator{width:30%;border-top-width:2px;border-top-color:#fff;border-top-style:solid;margin-bottom:10px;opacity:0;transition:transform 0.4s, opacity 0.4s ease-in-out;transform:translate3d(0, 30px, 0)}.wp-block-uagb-image--layout-overlay__inner .uagb-image-caption{opacity:0;overflow:visible;color:#fff;transition:transform 0.45s, opacity 0.45s ease-in-out;transform:translate3d(0, 35px, 0)}.wp-block-uagb-image--layout-overlay__inner:hover .uagb-image-heading,.wp-block-uagb-image--layout-overlay__inner:hover .uagb-image-separator,.wp-block-uagb-image--layout-overlay__inner:hover .uagb-image-caption{opacity:1;transform:translate3d(0, 0, 0)}.wp-block-uagb-image--effect-zoomin .wp-block-uagb-image__figure img,.wp-block-uagb-image--effect-zoomin .wp-block-uagb-image__figure .wp-block-uagb-image--layout-overlay__color-wrapper{transform:scale(1);transition:transform 0.35s ease-in-out}.wp-block-uagb-image--effect-zoomin .wp-block-uagb-image__figure:hover img,.wp-block-uagb-image--effect-zoomin .wp-block-uagb-image__figure:hover .wp-block-uagb-image--layout-overlay__color-wrapper{transform:scale(1.05)}.wp-block-uagb-image--effect-slide .wp-block-uagb-image__figure img,.wp-block-uagb-image--effect-slide .wp-block-uagb-image__figure .wp-block-uagb-image--layout-overlay__color-wrapper{width:calc(100% + 40px) !important;max-width:none !important;transform:translate3d(-40px, 0, 0);transition:transform 0.35s ease-in-out}.wp-block-uagb-image--effect-slide .wp-block-uagb-image__figure:hover img,.wp-block-uagb-image--effect-slide .wp-block-uagb-image__figure:hover .wp-block-uagb-image--layout-overlay__color-wrapper{transform:translate3d(0, 0, 0)}.wp-block-uagb-image--effect-grayscale img{filter:grayscale(0%);transition:0.35s ease-in-out}.wp-block-uagb-image--effect-grayscale:hover img{filter:grayscale(100%)}.wp-block-uagb-image--effect-blur img{filter:blur(0);transition:0.35s ease-in-out}.wp-block-uagb-image--effect-blur:hover img{filter:blur(3px)}\n.uagb-block-220fc123.wp-block-uagb-image{text-align: left;justify-content: flex-start;align-self: flex-start;}.uagb-block-220fc123 .wp-block-uagb-image__figure{align-items: flex-start;}.uagb-block-220fc123.wp-block-uagb-image--layout-default figure img{box-shadow: 0px 0px 0 #00000070;}.uagb-block-220fc123.wp-block-uagb-image .wp-block-uagb-image__figure figcaption{font-style: normal;align-self: center;}.uagb-block-220fc123.wp-block-uagb-image--layout-overlay figure img{box-shadow: 0px 0px 0 #00000070;}.uagb-block-220fc123.wp-block-uagb-image--layout-overlay .wp-block-uagb-image--layout-overlay__color-wrapper{opacity: 0.2;}.uagb-block-220fc123.wp-block-uagb-image--layout-overlay .wp-block-uagb-image--layout-overlay__inner{left: 15px;right: 15px;top: 15px;bottom: 15px;}.uagb-block-220fc123.wp-block-uagb-image--layout-overlay .wp-block-uagb-image--layout-overlay__inner .uagb-image-heading{font-style: normal;color: #fff;opacity: 1;}.uagb-block-220fc123.wp-block-uagb-image--layout-overlay .wp-block-uagb-image--layout-overlay__inner .uagb-image-heading a{color: #fff;}.uagb-block-220fc123.wp-block-uagb-image--layout-overlay .wp-block-uagb-image--layout-overlay__inner .uagb-image-caption{opacity: 0;}.uagb-block-220fc123.wp-block-uagb-image--layout-overlay .wp-block-uagb-image__figure:hover .wp-block-uagb-image--layout-overlay__color-wrapper{opacity: 1;}.uagb-block-220fc123.wp-block-uagb-image .wp-block-uagb-image--layout-overlay__inner .uagb-image-separator{width: 30%;border-top-width: 2px;border-top-color: #fff;opacity: 0;}.uagb-block-220fc123.wp-block-uagb-image .wp-block-uagb-image__figure img{width: 134px;height: auto;}.uagb-block-220fc123.wp-block-uagb-image .wp-block-uagb-image__figure:hover .wp-block-uagb-image--layout-overlay__inner .uagb-image-caption{opacity: 1;}.uagb-block-220fc123.wp-block-uagb-image .wp-block-uagb-image__figure:hover .wp-block-uagb-image--layout-overlay__inner .uagb-image-separator{opacity: 1;}.uagb-block-220fc123.wp-block-uagb-image--layout-default figure:hover img{box-shadow: 0px 0px 0 #00000070;}.uagb-block-220fc123.wp-block-uagb-image--layout-overlay figure:hover img{box-shadow: 0px 0px 0 #00000070;}@media only screen and (max-width: 976px) {.uagb-block-220fc123.wp-block-uagb-image .wp-block-uagb-image__figure img{width: 134px;height: auto;}}@media only screen and (max-width: 767px) {.uagb-block-220fc123.wp-block-uagb-image .wp-block-uagb-image__figure img{width: 134px;height: auto;}}.wp-block-uagb-advanced-heading h1,.wp-block-uagb-advanced-heading h2,.wp-block-uagb-advanced-heading h3,.wp-block-uagb-advanced-heading h4,.wp-block-uagb-advanced-heading h5,.wp-block-uagb-advanced-heading h6,.wp-block-uagb-advanced-heading p,.wp-block-uagb-advanced-heading div{word-break:break-word}.wp-block-uagb-advanced-heading .uagb-heading-text{margin:0}.wp-block-uagb-advanced-heading .uagb-desc-text{margin:0}.wp-block-uagb-advanced-heading .uagb-separator{font-size:0;border-top-style:solid;display:inline-block;margin:0 0 10px 0}.wp-block-uagb-advanced-heading .uagb-highlight{color:#f78a0c;border:0;transition:all 0.3s ease}.uag-highlight-toolbar{border-left:0;border-top:0;border-bottom:0;border-radius:0;border-right-color:#1e1e1e}.uag-highlight-toolbar .components-button{border-radius:0;outline:none}.uag-highlight-toolbar .components-button.is-primary{color:#fff}\n.wp-block-uagb-advanced-heading.uagb-block-76d8c708.wp-block-uagb-advanced-heading {text-align: center;}.wp-block-uagb-advanced-heading.uagb-block-76d8c708.wp-block-uagb-advanced-heading .uagb-desc-text{color: var(--ast-global-color-5);margin-bottom: 0px;}.wp-block-uagb-advanced-heading.uagb-block-76d8c708.wp-block-uagb-advanced-heading .uagb-highlight{font-style: normal;font-weight: Default;background: #007cba;color: #fff;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-76d8c708.wp-block-uagb-advanced-heading .uagb-highlight::-moz-selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-76d8c708.wp-block-uagb-advanced-heading .uagb-highlight::selection{color: #fff;background: #007cba;-webkit-text-fill-color: #fff;}.wp-block-uagb-advanced-heading.uagb-block-76d8c708 .uagb-heading-text{margin-bottom: 15px;}.wp-block-uagb-advanced-heading.uagb-block-76d8c708 .uagb-desc-text{font-weight: 600;}\";s:2:\"js\";s:480:\"document.addEventListener(\"DOMContentLoaded\", function(){ window.addEventListener( 'DOMContentLoaded', function() {\n\tUAGBInlineNotice.init( {\"c_id\":null,\"cookies\":false,\"close_cookie_days\":1,\"noticeDismiss\":\"\",\"icon\":\"rectangle-xmark\"}, '.uagb-block-ec1f655e' );\n});\nwindow.addEventListener( 'DOMContentLoaded', function() {\n\tUAGBInlineNotice.init( {\"c_id\":null,\"cookies\":false,\"close_cookie_days\":1,\"noticeDismiss\":\"\",\"icon\":\"rectangle-xmark\"}, '.uagb-block-1a8f5a7b' );\n});\n });\";s:18:\"current_block_list\";a:9:{i:0;s:14:\"core\/paragraph\";i:1;s:9:\"core\/list\";i:2;s:10:\"core\/embed\";i:3;s:18:\"uagb\/inline-notice\";i:4;s:10:\"core\/image\";i:5;s:14:\"uagb\/container\";i:6;s:14:\"core\/shortcode\";i:7;s:10:\"uagb\/image\";i:8;s:21:\"uagb\/advanced-heading\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1777681246\";s:6:\"gfonts\";a:1:{s:7:\"Default\";a:2:{s:10:\"fontfamily\";s:7:\"Default\";s:12:\"fontvariants\";a:0:{}}}s:10:\"gfonts_url\";s:71:\"\/\/fonts.googleapis.com\/css?family=Default&subset=latin&display=fallback\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"],"_uag_css_file_name":["uag-css-80791.css"],"_uag_js_file_name":["uag-js-80791.js"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"astra_template_preview":false},"uagb_author_info":{"display_name":"Anjali","author_link":"https:\/\/wpastra.com\/author\/anjalic\/"},"uagb_comment_info":0,"uagb_excerpt":"Astra Pro 3.1 introduced a new element in the Header Footer Builder &#8211; the option to add a Language Switcher. This feature allows you to add navigation for your multilingual website in the header or footer. This article will help you understand how to use it with WPML and other third-party translation plugins. Below, you&hellip;","_links":{"self":[{"href":"https:\/\/wpastra.com\/wp-json\/wp\/v2\/docs\/80791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpastra.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpastra.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wpastra.com\/wp-json\/wp\/v2\/users\/20"}],"version-history":[{"count":0,"href":"https:\/\/wpastra.com\/wp-json\/wp\/v2\/docs\/80791\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpastra.com\/wp-json\/wp\/v2\/media?parent=80791"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/wpastra.com\/wp-json\/wp\/v2\/docs_category?post=80791"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/wpastra.com\/wp-json\/wp\/v2\/docs_tag?post=80791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}