[Resolved] Attempting to translate an ACF link field
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is attempting to translate an ACF link field but it is not appearing in the translation editor. The field group is set to 'Expert' and the translation preferences on the field are set to 'Translate'. The client expects to see 'acf/hero/call_to_action' but it's not showing up, even after setting the link field to translate and editing the block, page, and the specific link field.
Solution: 1. Ensure that the ACF field group's translation mode is set to 'Expert'. 2. Set the Link Field to 'Translate'. 3. Edit the block on the original content, save the content, and then attempt to translate it again. This should allow the translation of the link text and its URL.
If the issue persists, it may be due to using the same field names in different blocks. Each field group should have unique field names to avoid conflicts. Prefix each field name properly to ensure that each field name exists only once.
For more guidance, refer to our documentation on translating sites built with ACF:
Attempting to translate an ACF link field - in the field group, I have it set to Expert and the translation preferences on the field are "Translate" - but it doesn't show up in the translation editor
I'm seeing acf/hero/headline, but it should also show acf/hero/call_to_action ?
I set it to Expert and set the link field to translate, but even when editing the block, page, and even the specific link field, it never shows up on the translate screen.
So "call_to_action" needs to become "hero_call_to_action"? Not sure why that would make a difference but I'd still be able to translate fields like "headline" or "copy" that have the same names across blocks, especially since those fields are scoped in ACF within the specific block.
Just tested this and it does seem to work, but it also means restructuring every single link and call to action on our site. It can be done, but obviously with a huge lift to make it work.
Does this still work if there are multiple blocks on the same page (i.e. text_call_to_action with several text blocks)?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
This does count for any field, as well as "headline" and others. They have to have unique names.
From our documentation:
Before you start translating, make sure each of the custom fields across your different field groups have a unique Field Name. If you use the same Field Name with more than one custom field, you may not see all your field values available for translation in the Translation Editor.