Home›Support›English Support›[Resolved] Assistance Needed for Translating Footer Text, Contact Map, and Career Section
[Resolved] Assistance Needed for Translating Footer Text, Contact Map, and Career Section
This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing issues translating specific content on your WordPress site using WPML, including Footer Text, Contact - Location Map, and Career Section. These texts do not appear in the String Translation or other WPML settings for translation. Solution:
- For translating footer/admin text, please follow the below steps:
1. Go to WPML >> String Translation page.
2. Scroll down and click on the Translate texts in admin screens » link at the bottom of the page.
3. Search for the required string.
4. Select the string.
5. Click on the Add to String Translation button.
6. Then click on the "« Return to String Translation" link.
7. Add the translation from WPML >> String Translation page.
- To translate hardcoded strings such as 'Location Map', follow these steps: 1. Wrap the strings in the gettext
__()
function. For example, replace
'Location Map'
with
__('Location Map', 'themedomain')
in the wp-content/plugins/lifest-elementor/widgets/contact-page/contact-page-form-widget.php file. 2. Scan the Lifest Elementor plugin from WPML >> Theme and plugins localization page. 3. Go to the WPML >> String Translation page, search for the string, and add the translation. For more details on wrapping texts in gettext calls, visit Translating the Theme You Created. If this solution does not resolve your issue or if it seems outdated or irrelevant to your case, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum.
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.
Background of the issue:
I am experiencing issues with translating specific content on my WordPress site using WPML. Despite exploring the String Translation, Languages, and String Management sections, I have not been able to locate the translation options for the following items: Footer Text, Contact - Location Map, and Career Section. I have checked String Translation, Theme Options, Widget Areas, and Custom Post Types.
Symptoms:
The specific text does not appear in the String Translation or other WPML settings for translation.
Thank you for contacting WPML Support. I’ll try my best to help you in translating strings from these three sections.
- For translating footer text, please follow the below steps:
1. Go to WPML >> String Translation page.
2. Scroll down and click on the Translate texts in admin screens » link at the bottom of the page.
3. Search for the required string.
4. Select the string.
5. Click on the Add to String Translation button.
6. Then click on the "« Return to String Translation" link.
7. Add the translation from WPML >> String Translation page.
- For translating the contact and careers page text, can you please let me know how you have added that text in the default language. If it’s added using Elementor page builder then you should be able to translate it using WPML Translation Editor when you translate these pages into secondary language.
If it’s directly added from theme/plugin files, and it’s wrapped in gettext(__()) function, then you should be able to translate it from the WPML >> String Translation page.
Hi, thanks for the prompt response and for your help. I was able to translate the footer successfully. However, I’m unsure about where to find the text for the contact and careers pages—should these be translated from the theme settings, or is there another place I should look?
Glad to hear your footer text translation is solved.
You may follow the below steps to find those two pages text:
1. Please open the page in Edit mode and see if it’s added using page options.
2. Please try to edit the page in the Elementor page builder and see if you could edit the text from there.
3. Check the theme options if you can edit it from there.
4. If you are still unable to find it, I suggest you please install the String Locator plugin and search that text in theme or theme bundled plugins files.
Thank you for your suggestions. I have followed steps 1, 2, and 3 but was unable to locate or modify the text. I have since downloaded the String Locator plugin and conducted a search. Here are the findings:
Contact Page: The text "Location Map" is located in the file wp-content/plugins/lifest-elementor/widgets/contact-page/contact-page-form-widget.php.
Career Page: The text "Join our company to be part of our family members. You may provide us the below information to apply for your full time or part time career or internship." is found in the file wp-content/plugins/lifest-elementor/widgets/home-01-page/home-01-form-widget.php.
Could you please provide guidance on how to modify these specific files, or let me know if there are other steps I should take?