-
YEAR93
I’m using the GeneratePress theme along with Elements and the GeneratePress Blocks Editor (Gutenberg) on my website.
I’ve noticed an issue after translating my website from Dutch to English using WPML:
1. On the original Dutch pages, the elements I created are displayed correctly according to the conditions I set.
2. On the English translated pages, many of these elements appear disabled, and the default page settings seem to be applied instead.I have already double-checked the element settings, and they are enabled for the correct pages on the Dutch version. It seems that the translation process may have affected the way the elements are applied.
Could you please advise how to ensure that my elements work correctly on the translated pages?
Thank you for your help!
-
Hi there,
Which element are you referring to?
The Page hero element on the English about us page (/en/about-us) seems to be working well:
https://app.screencast.com/i31ogujNDyBkxLet me know 🙂
-
YEAR93
Thanks for checking!
The About Us page seems okay, but the issue occurs on multiple other English pages — especially the service subpages and a few legal pages. On the Dutch version, all elements display correctly, but on the English version, many of them are missing.
Here’s a summary of what’s not working on the English version:
Service subpages (Export, Import, Transport, Transit)
Missing elements:* Offerteformulier
* Services Page Header (not the regular Page Header)Privacy Policy & Disclaimer pages
* The Page Header element should be disabled, but it still appears.
* The Last Updated element (which should appear after the body content) is missing.CTA – Collapsed Mobile Menu Bottom
* Not showing in the slide-out mobile menu on the English version.
So the About Us page might look fine, but the other translated pages don’t show their assigned elements as expected.
-
I checked the import page, it does not have a featured image set, so the page hero element will not work.
Privacy Policy & Disclaimer pages
* The Page Header element should be disabled, but it still appears.
* The Last Updated element (which should appear after the body content) is missing.You selected the Dutch version of the privacy policy and disclaimer pages in the exclude list. I reselected the Disclaimer page, and now the page header is gone, please do so for the Privacy policy page as well.
-
YEAR93
I’ve now added the correct featured images to all service subpages (Import, Export, Transit, and Transport). The images are now displaying correctly on these pages, but I still don’t see the full content from the element and the other element Offerteformulier is still missing from these pages as well.
For the Privacy Policy and Disclaimer pages, I’m not sure exactly what you did. The Page Header still doesn’t look right for the Privacy page, and the Last Updated element at the bottom is still missing. Could you please explain the steps you took, maybe with a short video or a screenshot?
Also, I don’t understand why the GeneratePress Element settings don’t automatically sync between translations. Now I have to manually fix everything page by page, and I’m not even sure if I’ve caught all missing elements yet.
This makes me wonder what if I have a much larger website and want to add even more languages later?
-
but I still don’t see the full content from the element
You haven’t added any content to the ACF field of the English pages, so no content would show; it’s expected.
https://app.screencast.com/qNdbINkl7zAA5and the other element Offerteformulier is still missing from these pages as well.
I do not see an element called Offerteformulier in the English elements list, can you check?
https://app.screencast.com/YUquuVql8ZaNVand the Last Updated element at the bottom is still missing.
You selected the Dutch page in the location for this element as well.
This makes me wonder what if I have a much larger website and want to add even more languages later?
Based on what I see, all GP elements are working properly; all the issues are actually from your incorrect/empty settings.
-
YEAR93
I’ve managed to solve everything. You were right, I had to manually go through each element and set the page include/exclude rules for the English pages as well.
It seems those conditions are unfortunately not automatically copied from the default language. For the GP elements that use ACF fields, I also translated the field content manually.
I’m still not sure why those ACF values weren’t automatically translated by WPML, but it’s all displaying correctly now.
I just have one last question:
How can I place a custom WPML language switcher in the header on mobile, next to the hamburger menu (before the hamburger menu icon)?Should I create an Element with a shortcode block, and which GeneratePress hook would be best to use for that placement?
-
Should I create an Element with a shortcode block, and which GeneratePress hook would be best to use for that placement?
Yes, I think so 🙂
-
YEAR93
I already figured it out. Thank you.
-
You are welcome 🙂
- You must be logged in to reply to this topic.