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!
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.