This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
|January 3, 2017 at 7:41 am #1173002|
I am trying to: Translate custom links in a menu, either with string translation or manually.
The original menu is made like this - with parent and children items
MENU ID : 253, called "mobile_menu"
We have something like a dozen languages.
For this I've read WPML manual and forums and try all these :
In the theme, the menu is displayed like this :
The menu shows "correctly" but custom links untranslated.
I also tried this after seing it in the forums:
But this way, the menu doesnt show correctly : only the first children links are showing (in every language)! (the 3 page links after the first custom link). Why ?
We also previously tried to edit manually the menus. But when doing this, the items order is messed up every time we save the menu ! Also, the string translation way sounds a lot better ... if only it could work. Can you help ?
|January 3, 2017 at 3:54 pm #1173619|
First, please make sure that all your plugins (not only WPML related) and your theme are up to date.
I tried to replicate your issue on a clean installation but I couldn't. Everything worked as expected when I followed the steps you mentioned. So it seems that it's an issue specific to your website.
You should be able to see the translated menu on Appearance->Menus after translating custom links on WPML->String Translation and syncing your menus on WPML->WP Menus Sync.
Please do the following:
If that doesn't help, please enable error logging. You can find more info on how to do it and example code for debugging at https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); define( 'SCRIPT_DEBUG', true );
4. Save the file.
Paste the content of the debug.log file, if there are any errors listed.
Also, please check if the issue still occurs with all non-WPML plugins deactivated and the default theme active, e.g. Twenty Seventeen? Note that you'll need to re-create your menu for the default theme.
Regarding the menu being displayed incorrectly, did you possibly translated your pages after menu synchronization? If so, please go to WPML->WP Menu Sync and synchronize your menu again.
I also noticed that your WP Memory Limit is set to 40MB and the WPML's minimum requirement is to have it on 128MB. You can easily increase the memory allocated to PHP. You'll find more info about it at https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP.
define( 'WP_MEMORY_LIMIT', '128M' ); define( 'WP_MAX_MEMORY_LIMIT', '256M' );
4. Save the file.
This will most likely not resolve your issue, but it may save you from a headache in the future when you stumble upon some unexpected issues.
The topic ‘[Closed] Custom Links in menu translated in String Translation, but not translated on sit’ is closed to new replies.