The client is adding a dynamic biography field to the author page but the translated biography does not display. Please see this page: hidden link
The translated bio should read "Test Bio EN". The client has created a template named "Bloc bio auteurs" in Divi -> Libraries with a Person element. This element has an Author Bio section that displays the biography entered in Users -> Profile.
The client has used the template in a Global Element at Divi -> Theme Builder. When you go to WPML -> String Translation, you can find the biography string there and translate it. however, on the frontend, the translation does not show up.
Test site with Divi set up: hidden link
On this site, I just created a page and added the Person element there. In the text field, I clicked the icon to add dynamic content and selected the author bio. After translating the page and the bio, you can see that the translation does not appear on the frontend. hidden link
I just found a similar ticket with a workaround. This may be included in a recent Divi udpate. I tested in the version I was using and it had not yet been resolved. Please try this:
As a workaround:
in wp-content/themes/Divi/includes/builder/feature/dynamic-content.php just after line 941:
$author = get_userdata( $post->post_author );\
add:
if (class_exists('sitepress')) {
$author->description = get_the_author_meta('description' ,$author->ID);
}
This worked in my test site here: hidden link
The language switcher is at the bottom, and you can see the biography content at the bottom of the page.
Please let me know if this workaround resolves the issue for you. Thanks!