- This topic has 2 replies, 2 voices, and was last updated 5 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support › Forums › Flex Theme › 2nd Word Menu Translation ?
Tagged: menu, translation
The word โMenuโ in the mobile secondary menu before footer are not translated on this site: http://museon.lindebjerg.de/
I have made a post before about this problem and I thought I had solved it. But now when I use the secondary menu, I still see the word “Menu” in the mobile version of the secondary menu?
I have made some changes like I wrote here: https://support.simpleprothemes.com/forums/topic/the-word-menu-translation/
But I cannot find a separate part in the functions.php to translate the word “Menu” for the secondary menu?
Best Regards,
Jesper
open functions.php file and replace
wp_localize_script( 'flex-global-js', 'WP', array( 'AJAX_URL' => admin_url( 'admin-ajax.php'), 'NONCE' => wp_create_nonce( 'flex_ajax_pg_nonce' ) ));
WITH
wp_localize_script(
'flex-global-js',
'WP',
array(
'AJAX_URL' => admin_url( 'admin-ajax.php'),
'NONCE' => wp_create_nonce( 'flex_ajax_pg_nonce' ),
'menuL10n' => __( 'Menu', 'flex' )
)
);
=======================
Next open global.js file and replace
$( '.nav-secondary .genesis-nav-menu, .nav-header .genesis-nav-menu' ).before('<div class="responsive-menu-icon"><span>MENU</span></div>');
WITH
$( '.nav-secondary .genesis-nav-menu, .nav-header .genesis-nav-menu' ).before('<div class="responsive-menu-icon"><span>' + WP.menuL10n + '</span></div>');
thanks Paul, now it works ๐