Archived topic
namless mobile menu sometimes picks a name
5 replies · Started by Martin on August 1, 2020
Something weird I noticed. When I leave the name for the mobile menu empty, just to get the "burger" icon and the menu depth is deeper than two, sometime a title next to the "burger" icon appears. The weird part: it is even no menu item title, just "preferences" in my case. It happens only in the sticky menu on mobile — the problem disappears when using the off canvas panel on mobile.
Hi there,
Any chance you can link us to the site in question?
You can edit the original topic and use the private URL field.
Let me know :)
Ok, it is still a staging site so, you can find it here
https://staging.baker-company.de/en/translation-agency/
At the moment it appears, when I change the language to English...
Could it be a problem with polytrans — that there is somewhere stored a menu title?
In the customizer it remains empty
Yea, could be the plugin. Strange though, as the option uses a filter.
Try this PHP:
add_filter( 'generate_mobile_menu_label', '__return_empty_string', 999 );
strange strings ...
Ok, your snipped has helped, thank you!
You're welcome :)