operationM
Background of the issue:
I am trying to remove WPML menu links from the appearance > menus page on my site hidden link .
Symptoms:
There are WPML menu links that I want to remove from the appearance > menus page.
Questions:
How can I remove WPML menu links from the appearance > menus page?
Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
Hello,
These are the translation options to create different menus in different languages.
The menus are translatable by default. There is sadly no way to remove those options.
Best regards
Andreas
operationM
Hi Andreas,
Thank you for responding. Can you ask the dev's for me what hooks are used to put these links there in the first place? Or the template to override?
I can't leave them there as need to provide access to the menu page to multiple users.
Thank you for your time.
Phil
Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
These links are necessary to create different menus in different languages, which is why I do not recommend removing them .
You could inject some CSS, which only changes the UI but does not interfere with menu translation functionality, like:
add_action('admin_head-nav-menus.php', function () {
echo '<style>
.icl_lang_menu.icl_nav_menu_text {
display: none !important;
}
</style>';
});
Furthermore, please note that custom code requests are typically outside the scope of our support team and should be addressed by an independent developer.