Here is the ticket. It could be a compatibility issue between the Page Layer plugin and WPML, we will address that by reporting this to the compatibility team.
To be able to report the compatibility issues we need to replicate the issue on a clean installation. I created a clean installation of WordPress, WPML, and all necessary WPML add-ons. You can access the WordPress dashboard using the link below: hidden link
Kindly follow the steps below:
- Install the Page Layer plugin.
- Try to replicate the issue.
- Then let me know the steps to replicate it.
This will help us to report the probable issue to the compatibility team and solve the possible problem faster.
- Install the Page Layer plugin. --> This is a paid theme, the license can be use only in one url
- Try to replicate the issue. --> I already mentioned where is the error, the Header home is translated but it is not displaying.
- Then let me know the steps to replicate it. --> I have no clue how to replicate this issue, I am just know it is not working properly as should be expecting
This image below shows the string gutenberg-42 (header home) is translated. However, it is not displaying in the header, which means that is the only section and footer that this behavior is happening, it seems this is a lost reference in some database table that might be fixed by your team.
After downloading the backup file and restoring your site on my local site to investigate the issue, I see there is a way to translate the content in the PageLayer template. Please follow steps below and see how it goes.
❌ IMPORTANT: Please backup your database and website before proceeding ❌
1. Go to WPML > Settings:
- Custom Fields Translation section > click on "Show system fields" > search for the field "pagelayer" and set the preference of all fields to "Copy", please check this screenshot hidden link
- Post Types Translation section: set the post type "Pagelayer Templates" to "Translatable - only show translated items".
- Custom XML Configuration tab: add the code below to register the widget Icon box heading for translation
I did all the step, however, this last step didn´t work at all. I couldn´t find a specific block for header, could you please send me the specific code for Header [pagelayer-template id="42"]
2. Go to Pagelayer > Theme Templates > Translate the templates on your site.
Hi Nguyen,
could you please send me the code and screenshot where to add it? It is so hard to follow up the last step because it is no clear in the documentation how to fix the header itself. Thanks
You need to add the custom XML configuration code to WPML > Settings > Custom XML Configuration tab > Save changes.
You also need to go to WPML > Settings > Post types translation > Set the post type "Pagelayer Templates" to "Translatable - only show translated items" to translate the templates.
Now you can translate the header and footer on your site as well. I've translated 2 templates on your site and you can see how I did it through this video hidden link
Look forward to your reply.
Thanks
The topic ‘[Closed] [PageLayer] Translate content with PageLayer builder’ is closed to new replies.