Until now I have had a language switcher in my "Choose category"-menu, which was shown as the off-canvas menu on mobile phones (I use Astra Pro theme). But I have removed the language switcher from the "Choose category"-menu. So how do I put the language switcher on the off-canvas menu without putting it on the "Choose category"-menu?
Hello There,
Thanks for contacting WPML Support. I will try my best to assist you in this matter.
By default, the WPML language switcher can be placed on the Menu section, Footer, and Widget area of the site. But, Please be informed that you can place the WPML language Switcher anywhere on anywhere of your site using Shortcode.
If you have the flexibility to edit the Offcanvas, then place the Shortcode below inside the Offcanvas. The Language Switcher will start to appear inside the Offcanvas.
[wpml_language_switcher]
If you want to customize the appearance of the Language switcher, you can do that from the "WPML > Languages > Custom Language Switcher" section. "Enable" the Custom Language Switcher first to see the options for customization.
I decided to create a new menu (in all 3 languages) - that include the language switcher - and assign THAT menu to the off-canvas menu. It's kind of double work, but I am not sure how to use the shortcode solution.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.