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.
Tagged: Documentation request
This topic contains 3 replies, has 2 voices.
Last updated by Dražen 1 year, 1 month ago.
Assisted by: Dražen.
Author | Posts |
---|---|
October 20, 2023 at 8:09 am #14621425 | |
Atiq Rahman |
Hi, My footer menu link are Not changing when language is Arabic. (snapshot attached) when i click to link it will land to English version link. How can i fix it. Thank you |
October 23, 2023 at 7:45 am #14633567 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, 1) In order to expedite handling your support requests, can you please share WPML support debug information from your site. - To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page. More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/ 2) How are you adding these items and links to default language page? If you are adding it and selecting and existing menu, then you need to go to AAppearance > Menus click on the plus or pencil icon and in 2nd language menu adjust your links and menut items manually: Let us know how it goes. Regards, |
October 23, 2023 at 8:34 am #14634435 | |
Atiq Rahman |
Hi, 1. i have not seeing now debug box. 2. i have on footer manual link. code snapshot attached. Thank you |
October 23, 2023 at 11:17 am #14637535 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, for translating text coming from PHP templates, you should be using gettext calls and text-domain arguments and wrap the text or link you want to translate. Please check our related documentation: For example: $url = __( '<em><u>hidden link</u></em>', 'my-domain' ); printf( esc_html__( 'By clicking on "Create an account" below, you are agreeing to the %sTerms of service%s', 'my-domain' ), '<a href="' . $url . '">', '</a>' ); After that make sure you to scan files from WPML → Theme and plugins localization and translate strings from WPML > String translation. In this case, I think it would be easier to use the WP menu and output regular menus and their translation. If not sure how, I advise maybe hiring a contractor or freelancer. Hope this helps. Regards, |