{"id":1479,"date":"2023-10-13T18:27:14","date_gmt":"2023-10-13T18:27:14","guid":{"rendered":"https:\/\/loftocean.com\/doc\/cozystay\/?post_type=ptkb&#038;p=1479"},"modified":"2023-10-13T18:35:25","modified_gmt":"2023-10-13T18:35:25","slug":"wpml-language-switcher-in-site-header","status":"publish","type":"ptkb","link":"https:\/\/loftocean.com\/doc\/cozystay\/ptkb\/wpml-language-switcher-in-site-header\/","title":{"rendered":"WPML Language Switcher in Site Header\/Mobile Menu"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1479\" class=\"elementor elementor-1479\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8bacb78 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8bacb78\" 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-992b279\" data-id=\"992b279\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7e1957b elementor-widget elementor-widget-text-editor\" data-id=\"7e1957b\" 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\t\t<p>After you import a CozyStay demo, you may find that elements such as &#8220;EN \/ FR&#8221; contained in the site header or mobile menu in the demo that look like language switches are actually design examples created in plain text in the demo.<\/p><p>So, when using WPML to create a multi-language site, how to add the Language Switcher provided by WPML to the page and change its style to be close to the example in the demo? Please follow the step below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ab784ff elementor-widget elementor-widget-image\" data-id=\"ab784ff\" 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\t<a href=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher.jpg\" data-elementor-open-lightbox=\"yes\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTQ4MywidXJsIjoiaHR0cHM6XC9cL2xvZnRvY2Vhbi5jb21cL2RvY1wvY296eXN0YXlcL3dwLWNvbnRlbnRcL3VwbG9hZHNcL3NpdGVzXC83XC8yMDIzXC8xMFwvd3BtbC1sYW5ndWFnZS1zd2l0Y2hlci5qcGcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"392\" src=\"https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-1024x392.jpg\" class=\"attachment-large size-large wp-image-1483\" alt=\"\" srcset=\"https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-1024x392.jpg 1024w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-300x115.jpg 300w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-768x294.jpg 768w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-1536x588.jpg 1536w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2048x784.jpg 2048w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-1920x735.jpg 1920w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-1440x551.jpg 1440w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-1200x460.jpg 1200w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-780x299.jpg 780w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-600x230.jpg 600w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-550x211.jpg 550w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-370x142.jpg 370w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-255x98.jpg 255w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\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<div class=\"elementor-element elementor-element-2d5a40f elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"2d5a40f\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e782b10 elementor-widget elementor-widget-text-editor\" data-id=\"e782b10\" 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\t\t<h3><b>Tutorial Video<\/b><\/h3>\n<p>In this tutorial video, you can see the complete process of using WPML&#8217;s Language Switcher to reproduce the &#8220;EN\/FR&#8221; design example in the demo.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5e3be64 elementor-widget elementor-widget-video\" data-id=\"5e3be64\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/jMoVUv9SsCc&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5cb0607 elementor-widget elementor-widget-text-editor\" data-id=\"5cb0607\" 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\t\t<p>The CSS code we added to Customizer&#8217;s &#8220;Advanced CSS&#8221; in the tutorial video:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-78bac82 elementor-widget elementor-widget-html\" data-id=\"78bac82\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre><code>.switcher .cs-menu > ul > li:not(:last-child):after {\n\tcontent: \"\/\";\n\tfont-size: small;\n}\n\n.switcher .cs-menu > ul > li {\n\tdisplay: flex;\n\talign-items: center;\n}<\/code><\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2e12113 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"2e12113\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d22084a elementor-widget elementor-widget-text-editor\" data-id=\"d22084a\" 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\t\t<h3><strong>Text Version of the Tutorial<\/strong><\/h3><p>We assume that your WordPress website has WPML related features installed and activated, and has been created in multiple languages.<\/p><ol><li>On your website dashboard, please navigate to &#8220;<strong>Appearance<\/strong>&#8221; &gt; &#8220;<strong>Menus<\/strong>&#8221; &gt; Create a new menu, for example, name it &#8220;Language Menu&#8221;. Please do not add any menu items to it. Save the change.<\/li><li>Please navigate to &#8220;<strong>WPML<\/strong>&#8221; &gt; &#8220;<strong>Languages<\/strong>&#8221; &gt; find &#8220;<strong>Menu Language Switcher<\/strong>&#8220;, click the &#8220;+ Add a new language switcher to a menu&#8221; button.<\/li><li>A new window pops up. In the &#8220;<strong>Choose a menu<\/strong>&#8221; dropdown, select the menu you just created: &#8220;Language Menu&#8221;. And select &#8220;<strong>List of Languages<\/strong>&#8221; for &#8220;Language Menu Item Style&#8221;. Save and close the popup window.<a href=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1484\" src=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2.jpg\" alt=\"\" width=\"2108\" height=\"1338\" srcset=\"https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2.jpg 2108w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-300x190.jpg 300w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-1024x650.jpg 1024w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-768x487.jpg 768w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-1536x975.jpg 1536w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-2048x1300.jpg 2048w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-1920x1219.jpg 1920w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-1440x914.jpg 1440w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-1200x762.jpg 1200w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-780x495.jpg 780w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-600x381.jpg 600w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-550x349.jpg 550w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-370x235.jpg 370w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-2-255x162.jpg 255w\" sizes=\"(max-width: 2108px) 100vw, 2108px\" \/><\/a><\/li><li>Now the Language Switcher displays &#8220;English&#8221; and &#8220;French&#8221;. To change them to &#8220;EN&#8221; and &#8220;FR&#8221;, please scroll up the page, find &#8220;Site Languages&#8221;, and click the &#8220;Edit Language&#8221; link. Find &#8220;Translation (English)&#8221;, change the text to &#8220;EN&#8221; and &#8220;FR&#8221;. Save the changes and back to languages.<a href=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1485\" src=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3.jpg\" alt=\"\" width=\"2500\" height=\"1160\" srcset=\"https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3.jpg 2500w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-300x139.jpg 300w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-1024x475.jpg 1024w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-768x356.jpg 768w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-1536x713.jpg 1536w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-2048x950.jpg 2048w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-1920x891.jpg 1920w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-1440x668.jpg 1440w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-1200x557.jpg 1200w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-780x362.jpg 780w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-600x278.jpg 600w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-550x255.jpg 550w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-370x172.jpg 370w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-3-255x118.jpg 255w\" sizes=\"(max-width: 2500px) 100vw, 2500px\" \/><\/a><\/li><li>Scroll down to find &#8220;<strong>Menu Language Switcher<\/strong>&#8221; and now you will see that the preview has changed. If you still see &#8220;Fran\u00e7ais&#8221; before &#8220;FR&#8221;, click the pencil icon to open the editor, and uncheck &#8220;Native language name&#8221;.<a href=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1486\" src=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4.jpg\" alt=\"\" width=\"2108\" height=\"1338\" srcset=\"https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4.jpg 2108w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-300x190.jpg 300w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-1024x650.jpg 1024w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-768x487.jpg 768w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-1536x975.jpg 1536w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-2048x1300.jpg 2048w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-1920x1219.jpg 1920w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-1440x914.jpg 1440w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-1200x762.jpg 1200w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-780x495.jpg 780w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-600x381.jpg 600w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-550x349.jpg 550w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-370x235.jpg 370w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-4-255x162.jpg 255w\" sizes=\"(max-width: 2108px) 100vw, 2108px\" \/><\/a><\/li><li>Now we can add this Language Switcher where we want, such as in the site header, mobile menu, site footer, etc. For example, when editing your site header with Elementor, please find &#8220;<strong>Navigation Menu<\/strong>&#8221; in the Elementor left panel and add it to the page and then select &#8220;Language Menu&#8221;. Please note that the language switcher cannot be rendered in the Elementor editor, you will only see a placeholder. After saving your changes, you can visit your website page to see how it looks.<\/li><li>If there are other elements in the same column and you want all the elements in the column to be displayed in a row: Navigate to the <strong>&#8220;Advanced&#8221; tab<\/strong> of each widget\/element in the column, set &#8220;<strong>Width<\/strong>&#8221; to &#8220;<strong>Inline(auto)<\/strong>&#8220;. And you can set a side margin to each widget\/element.<\/li><li>When editing this Navigation Menu, in the <strong>&#8220;Style&#8221; tab<\/strong>, you can tweak the style for it, such as typography, menu item distance, etc.<\/li><li>Save the changes to the site header, visit your website page and reload to see the language switcher in the site header. It will now display as &#8220;EN FR&#8221; and look like the screenshot below. If you&#8217;re satisfied with the result, you can stop here. If you want to add a slash between &#8220;EN&#8221; and &#8220;FR&#8221;, then please continue to check the steps below.<a href=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1487\" src=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5.jpg\" alt=\"\" width=\"2500\" height=\"342\" srcset=\"https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5.jpg 2500w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-300x41.jpg 300w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-1024x140.jpg 1024w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-768x105.jpg 768w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-1536x210.jpg 1536w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-2048x280.jpg 2048w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-1920x263.jpg 1920w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-1440x197.jpg 1440w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-1200x164.jpg 1200w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-780x107.jpg 780w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-600x82.jpg 600w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-550x75.jpg 550w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-370x51.jpg 370w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-5-255x35.jpg 255w\" sizes=\"(max-width: 2500px) 100vw, 2500px\" \/><\/a><\/li><li>To add a slash between &#8220;EN&#8221; and &#8220;FR&#8221;, please edit the site header with Elementor, find the language switcher (Navigation Menu element), in the <strong>&#8220;Advanced&#8221; tab<\/strong>, find &#8220;<strong>Layout<\/strong>&#8221; &gt; &#8220;<strong>CSS Classes<\/strong>&#8221; &gt; enter &#8220;<strong>switcher<\/strong>&#8220;. Save the change.<a href=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1488\" src=\"http:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-6.jpg\" alt=\"\" width=\"2500\" height=\"1304\" srcset=\"https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-6.jpg 2500w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-6-300x156.jpg 300w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-6-1024x534.jpg 1024w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-6-768x401.jpg 768w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-6-1536x801.jpg 1536w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-6-2048x1068.jpg 2048w, https:\/\/loftocean.com\/doc\/cozystay\/wp-content\/uploads\/sites\/7\/2023\/10\/wpml-language-switcher-6-1920x1001.jpg 1920w\" sizes=\"(max-width: 2500px) 100vw, 2500px\" \/><\/a><\/li><li>Now open the WordPress Customizer and navigate to &#8220;Advanced CSS&#8221;, copy the following CSS code and paste into the box. Save the changes. Done.<\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-296fcfc elementor-widget elementor-widget-html\" data-id=\"296fcfc\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre><code>.switcher .cs-menu > ul > li:not(:last-child):after {\n\tcontent: \"\/\";\n\tfont-size: small;\n}\n\n.switcher .cs-menu > ul > li {\n\tdisplay: flex;\n\talign-items: center;\n}<\/code><\/pre>\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<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"menu_order":0,"template":"","ptkb_category":[3,14],"class_list":["post-1479","ptkb","type-ptkb","status-publish","hentry","ptkb_category-how-tos-faqs","ptkb_category-translation"],"_links":{"self":[{"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb\/1479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb"}],"about":[{"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/types\/ptkb"}],"version-history":[{"count":5,"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb\/1479\/revisions"}],"predecessor-version":[{"id":1493,"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb\/1479\/revisions\/1493"}],"wp:attachment":[{"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/media?parent=1479"}],"wp:term":[{"taxonomy":"ptkb_category","embeddable":true,"href":"https:\/\/loftocean.com\/doc\/cozystay\/wp-json\/wp\/v2\/ptkb_category?post=1479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}