[Resolved] Theme Option for the footer not working in Spanish language
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're working on a site and trying to configure the Theme Option for the footer in the Spanish language, but it's not functioning correctly, here's what we found and how we addressed it. Solution: 1. We noticed that ACF Option Pages should not be translatable. In your WPML settings under WPML > Settings > Post Types Translation, set the translation preference to "Do not translate." 2. There were duplicated field groups for the same footer option page. We deactivated the unnecessary one and renamed it to "Option page: Footer inactive." 3. The translation mode on the footer group was initially set to "Different fields across languages." We recommend changing this to "Same fields across languages" to ensure consistency across translations. 4. The persistent error was due to a corrupt Spanish translation. To resolve this, we duplicated the field group and deactivated the original. The new active group is now "Option page: Footer (copy)." You can now access the English footer option page, save it, and switch to Spanish to translate your content.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.
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.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
Ususlaly you would need to scan the theme for new strings at WPML > Theme and Plugin Localization and then translate the footer text at WPML > String Translation.
Welcome to the WPML support forum. It looks like you have a custom theme. Could you please share more information about this option?
If you have a theme option page in your dashboard, then this field could be considered as "Texts in admin screens".
- Go back to "WPML > String Translation" and scroll to the bottom of the page to click on the "Translate texts in admin screens" link.
- On the next page, search for your option, select it and click on "Add to String Translation" to translate it.
If this solution doesn't work, could you please provide more details?
- Share a screenshot where we can see the footer option or vene better record a short video using a service like loom.com
- Is it a string of text, a custom field?
The more details you share, the better, it will help us understand your configuration.
In short:
- In "ACF > Field groups" , make sure that you have selected the "Same fields across languages" mode
- Go back to your option page and click "Update".
- Use the language switcher in your top admin bar to switch to Spanish.
- Translate your fields and click "Update"
If the fatal error persist, please provide me with a temporary admin access (wp-admin and FTP) – so I can further investigate.
I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.
IMPORTANT: Before we proceed, please backup your site and database.
You've shared login credentials in the public section of our forum. For security reasons, please delete that account immediately or at least update its password.
I took a quick look at your setup, and here’s what I found:
1. ACF Option Pages: These should not be translatable. Under "WPML > Settings > Post Types Translation", the translation preference should be set to "Do not translate."
2. Duplicated Field Groups: It appears you had two similar groups for the same footer option page. I deactivated the unnecessary one and renamed it to "Option page: Footer inactive."
3. Translation Mode on Footer Group: The group used by the footer page ("Option page: Footer") was set to "Different fields across languages." I instructed changing this to "Same fields across languages" in my previous answer.
4. Error Due to Corrupt Spanish Translation: Despite these adjustments, the error persisted because the Spanish translation was corrupted.
Solution: To resolve the issue, I duplicated the field group and deactivated the original. Now, "Option page: Footer" is inactive, and the new active group is "Option page: Footer (copy)".
Next Steps: You can now access the English footer option page, save it, and switch to Spanish to translate your content.
Note: I was logged out while trying to record a video explaining these changes, and I no longer have access since the public credentials were deleted.