Hello, I’m trying to translate a string I added to ‘includes/loop-index.php’.
I’ve added another data-entry called ‘Article Source’ using ACF. I’m using this code to display it:
_e( 'Article Source: ', 'avia_framework' );
echo '<a href="';
the_field('article_source');
echo '">';
the_field('article_source');
echo '</a> ';
I want ‘Article Source’ to be translatable.
How do I add the string to the po file that avia_framework is using? Or do I have it all wrong?
Thank you.
Hey FlatText,
Thank you for using Enfold.
The code looks correct. Please try to add the translations of the string with this plugin.
// https://wordpress.org/plugins/loco-translate/
Don’t forget to sync the language files.
Best regards,
Ismael
Thank you Ismael. I wanted to avoid using a plugin, but it worked even after I disabled Loco Translate. Thank you very much.
Hi,
Great, glad you got it working and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Thanks Rikard. The issue is resolved, please close it.
Hi,
Glad to hear that :) I’ll close this then, thanks for using Enfold and have a great day!
Best regards,
Nikko