Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 11 months ago.

Assisted by: Long Nguyen.

Author Posts
May 8, 2023 at 3:41 am

dayseJ-2

I translate the text using string translation, but even the text is translate it is not displaying in the website

May 8, 2023 at 5:10 am
May 8, 2023 at 6:37 am #13602137

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

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.

Look forward to your reply.
Thanks

May 15, 2023 at 10:59 am #13647151

dayseJ-2

- 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

May 15, 2023 at 11:31 pm #13651801

dayseJ-2

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.

header home issue.jpg
May 16, 2023 at 3:08 am #13651987

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

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

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="pagelayer/pl_iconbox" translate="1">
      <key name="service_heading" />
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

2. Go to Pagelayer > Theme Templates > Translate the templates on your site.

The content of the Pagelayer template is saved to the database as a Gutenberg block so you can follow the documentation below to register a block content for translation
https://wpml.org/documentation/support/language-configuration-files/#gutenberg-blocks

Look forward to your reply.
Thanks

May 16, 2023 at 10:17 pm #13659803

dayseJ-2

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.

The content of the Pagelayer template is saved to the database as a Gutenberg block so you can follow the documentation below to register a block content for translation
https://wpml.org/documentation/support/language-configuration-files/#gutenberg-blocks

May 17, 2023 at 2:03 am #13660067

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

To get the block info of widgets in the header, please follow steps:

- Go to Pagelayer > Theme Templates > Edit the header template > You can see the post ID of the header (42), please check this screenshot hidden link

- Access the database > table wp_posts > search for the post ID 42 > You can find the block info, please check this screenshot hidden link

Then follow the documentation to register other blocks in the header for translation with the custom XML configuration code.
https://wpml.org/documentation/support/language-configuration-files/#gutenberg-blocks

Look forward to your reply.
Thanks

May 22, 2023 at 11:02 am #13688775

dayseJ-2

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

May 23, 2023 at 1:30 am #13694397

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

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.