Archived topic
language selection on mobile menu not available
7 replies · Started by Christian on February 2, 2017
While testing our website on mobile devices, we noticed that the language selection (German/English) is not available or rather: can not be found. How can we change that? Furthermore, the side menu shows us a "No Access-Button" which usually is not on our website. We would like to know how to fix this.
Thank you in advance
Hi there,
Can you link me to your site so I can see what you mean?
Hi, it's http://www.cmp-beratung.com
as said before, only the mobile version does not work. I'd be grateful if you could help me
So I'm assuming that plugin adds the picker automatically to your primary menu?
Does the plugin provide a function we can use to place the picker in other locations?
Hi Tom,
right, probably the download monitor plugin adds the no access page automatically. Unfortunatly, I couldn't find a function to place the picker in other locations within the plugin settings.
2. The "language-switcher-button" of the Polylang Plugin which is correct shown at the desktop menu will not shown on mobile devices instead the switcher button is added in the menu-settings.
Thank you for your support
It looks like you can use a function: https://polylang.wordpress.com/documentation/frequently-asked-questions/the-language-switcher/
So we can try this:
add_action( 'generate_inside_mobile_menu_bar', 'tu_add_mobile_language_switcher' );
function tu_add_mobile_language_switcher() {
if ( function_exists( 'pll_the_languages' ) ) {
pll_the_languages();
}
}
Hi Tom,
we added the code that you sent to us, but if you take a look at our website with your mobile device you'll see that the languages cover the menu item. Do you know how to fix this?
In addition we still can not hide the "No Access" Button on the menu. any idea how to solve this?
Thank you for your support.
Here's what I'm seeing: https://www.screencast.com/t/icp1kW36NK1y
I wonder if they have a function to show the flags instead - might be worth asking their support team?
Not seeing any overlapping or no access button.