Hello, we have translated the Divi header and footer but they don't display in the translated pages (english). There was another thread but it's closed. The issue was not resolved.
"If the issue persists, it may be due to a corrupted database entry for the header. The client should create a new global header and translate it via WPML's Translation Dashboard."
Is this not an acceptable solution for you?
Note that the Divi Theme Builder should only be used in the site's default language. Make sure the language inside the top admin bar is set to the site's default language when working at Divi > Theme Builder.
Also, note that it might be that you still have old templates registered at WPML > Translation Dashboard. Make sure that the correct template is translated.
If the suggestion does not solve the issue, I'd like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.
You'll find the necessary fields below the comment section if you log in to leave the next reply. The information you provide will be private, meaning only you and I will be able to see and access it.
IMPORTANT
Please be sure to create a backup of the website and database before granting us access.
If you don't see the "wp-admin / FTP" fields, your login credentials for the post and website will be set to "PUBLIC." Do NOT publish the information unless you see the required wp-admin / FTP fields.
I may need to install a plugin called "All In One WP Migration" to create a copy of the website on which I can investigate the problem more thoroughly.
I would also be very grateful if you could provide a staging site on your server for this purpose.
If you have any questions about creating such a staging site, please contact your hosting provider. Please ensure that WPML is also registered on this staging site at https://wpml.org/de/account/websites/.
If you are unable to provide such a copy of the website for testing, please let me know on this ticket.
The private reply form looks like this: hidden link
When replying again, click "I still need assistance".
Video: hidden link
Please note that we are required to request this information individually on each ticket. We are not permitted to access any login information that was not specifically provided in the private reply form for this ticket.
Inside WPML > Settings > Post Type translation, please set "Theme Builders (et_theme_builder)" to "Not Translatable". It should not be translated.
Do only translate Divi Templates, and the Header, Body, or Footer Templates.
I would like to let you know what I have done so far and need to let you know that I was sadly not yet able to identify how this issue occurred:
I took a local copy of your site, and I can identify the following warnings on the translated homepage:
Warning: Attempt to read property "post_modified_gmt" on null in C:\laragon\www\elemecganotis\wp-content\themes\Divi\includes\builder\class-et-builder-post-feature-base.php on line 233
Warning: Attempt to read property "post_content" on null in C:\laragon\www\elemecganotis\wp-content\themes\Divi\includes\builder\feature\content-retriever\retrievers\PageContentRetriever.php on line 104
Warning: Attempt to read property "post_content" on null in C:\laragon\www\elemecganotis\wp-content\themes\Divi\includes\builder\feature\JQueryBody.php on line 79
All those errors are related to Divi.
Reinstalling Divi 4.27.6 does not seem to solve this issue, and updating to Divi 5 solves two of the Warnings, with the remaining Warning being:
Warning: Attempt to read property "post_content" on null in C:\laragon\www\elemecganotis\wp-content\themes\Divi\includes\builder\feature\JQueryBody.php on line 79
I then used the Divi Migration Tool inside Divi 5 to migrate the content to Divi 5.
Now, if I try to edit the original Global Header inside Divi Theme Builder, I get an error. I am not able to edit it.
An unknown error has occurred. Please try again later.
Note that this error is not WPML-related; it seems to be a Divi issue on the original content, and this is why WPML can not create a proper translation.
Only solution so far:
If I delete all headers and completely recreate them and then translate them the issue disappears.
The topic ‘[Closed] Translated header and footer do not display’ is closed to new replies.