Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to translate a static page with projects that is not displayed in the list of all pages.
Solution:
If you're experiencing issues translating a static page created with the Divi Theme Builder, we recommend translating it as outlined in our documentation on Translating Divi Theme Builder Templates. After updating the content from the front end, make sure to update the translations accordingly. If this solution doesn't seem relevant to your situation, please open a new support ticket with us for further assistance.

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.

This topic contains 6 replies, has 3 voices.

Last updated by Shekhar Bhandari 1 year, 7 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
December 22, 2023 at 8:48 am #15114861

sergheiD

How can we translate a static page with projects? It is not displayed in the list of all pages and it is not entirely clear how to translate it.
hidden link

December 22, 2023 at 9:42 am #15115491

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello!

You can use the get text approach for any PHP content you wish to translate. You can wrap any kind of content (text, links) and translate via WPML string translation as explained in the shared documentation.

Example:

$url = __( '<em><u>hidden link</u></em>', 'my-domain' );
  
printf(
    esc_html__( 'By clicking on "Create an account" below, you are agreeing to the %sTerms of service%s', 'my-domain' ),
    '<a href="' . $url . '">',
    '</a>'
);

As for different language templates, you can use that but make sure to disable the option "Synchronize page template" from WPML > Settings > Posts and pages synchronization.

Even though the first approach is correct and recommended you are free to use approach that suit you, For example:

- https://wpml.org/forums/topic/page-templates-for-each-language/#post-3120603

I hope I was helpful.

Regards,
Drazen

December 22, 2023 at 10:34 am #15116103

sergheiD

hidden link
hidden link
here are 2 pages.
on the second page, through the editor, I changed the text to a second language.
This text became 2 pages.
Everything I write on one page ends up on the second page.
how to change this?

December 25, 2023 at 1:13 pm #15126515

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello Serghie,

I'm here to offer further assistance with this matter.

After reviewing the secondary pages, I couldn't identify any instances of duplicate content. Could you kindly share a few screenshots illustrating how you are managing the translation process and how the content is currently being displayed? This additional information will allow me to provide more precise guidance.

I eagerly await your response.

Thank you.

December 30, 2023 at 3:43 pm #15138134

sergheiD

Hello!
I recorded a video, I think this will make it clearer to you what I meant.

hidden link

January 1, 2024 at 5:09 am #15139131

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

January 3, 2024 at 12:58 pm #15146636

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I noticed it's divi theme builder content and I suggest you translate it as mentioned here: https://wpml.org/documentation/theme-compatibility/divi-builder/#translating-custom-global-header-footer

Once you update the content from the front end, update the translations as mentioned here and see if it helps.

Look forward to your reply.

Thanks

January 3, 2024 at 8:07 pm #15148679

sergheiD

Thanks