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.

This topic contains 9 replies, has 2 voices.

Last updated by Kor 1 year, 6 months ago.

Assisted by: Kor.

Author Posts
August 21, 2023 at 9:39 am #14261847

tamK

I am using a page builder called Live Canvas on my site. I have translated the contents into 2nd language with wpml, However, the footer can't show up the 2nd language content.

My case seems similar to this case :https://wpml.org/forums/topic/not-translating-in-footer/

I just can't solve this issue by following the step you provided.

please help

August 21, 2023 at 6:58 pm #14266551

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for contacting WPML support.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

August 23, 2023 at 10:26 am #14277373

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

I appreciate your response.

After reviewing your website, I'm uncertain about the functioning of the live canvas page builder template. Could you kindly explain the process of assigning the footer template to your homepage?

I've checked the documentation and I cannot find any information on how to assign a footer to a page hidden link

August 23, 2023 at 11:09 am #14277921

tamK

hi, thanks for your help.

Indeed, the template automatically assigns the footer to pages, and I didn't pay any effort to concern about it. So I can't answer you about the mechanism of the footer.

I have contacted the template developer and he said he is replicating in a stage environment on my issue. Let's see what will his answer be.

If both parties can't solve my issue, I have to find other options. It is so disappointing.

I am thinking of finding a script (or the wpml developer could provide me) to respond to the specific language version. Let's say the same footer contains both Chinese and English content with separate blocks. If in the Chinese version, the Chi version block content will be shown and vice verse.

Could you kindly give me some examples of the script? thanks

August 23, 2023 at 11:13 am #14277931

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

We apologize for the inconvenience, sorry, I couldn't provide your any scripts if I couldn't understand how the page builder works.

But in order to proceed with troubleshooting, we kindly request a site snapshot. Alternatively, with your permission, we can create a snapshot on our own.

For this purpose, we typically recommend using the free plugin "Duplicator." If you are already familiar with how Duplicator works ( https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To assist you further, please follow these instructions:
Watch the Duplicator instructions video: hidden link

Refer to the instructions provided by WPML on how to provide supporters a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

If the archive file exceeds 400MB in size, please utilize Duplicator's file filters to exclude the cache, wp-uploads directory, media, and archive files.

Once you have the archive file, please share the link with us. You can use services such as Google Drive, Dropbox, or similar platforms as the snapshot file will likely be large.

Please note that your next reply will be private, visible only to you and me. You can paste the link to the file there. Rest assured that once the issue is resolved, I will delete the local site.

August 28, 2023 at 10:09 am #14299389

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I have the duplicator copy now. Please allow me to check and will revert to you as soon as possible.

August 28, 2023 at 10:42 am #14299675

tamK

hi Kor,

Please go ahead. You can check the website details on your server. Since I have added a custom script to solve the issue temporarily and keep going to add new content, please make sure you won't make any updates on my server website is fine to me. Thanks for your help.

August 29, 2023 at 7:16 pm #14308955

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your understanding.

I've managed to recreate this problem on our local development site, and unfortunately, I don't have an immediate solution. I would like to take this opportunity to escalate the matter to our 2nd Tier Support for more specialized assistance.

August 30, 2023 at 5:08 am #14309865

tamK

looking forward to your reply soon. thanks

September 11, 2023 at 5:03 pm #14378667

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

We have a workaround for this. Kindly perform a full backup and follow the instructions below.

Open .../wp-content/plugins/livecanvas/livecanvas-plugin-index.php.

Look for line 613:

Change :

$footer_html = get_post_field( 'post_content', lc_get_partial_postid('is_footer', $variant), 'raw' );

With :

$footer_html = get_post_field('post_content', apply_filters('wpml_object_id', lc_get_partial_postid('is_footer', $variant), 'lc_partial'), 'raw');

Look for line 606:

Change :

$header_html = get_post_field( 'post_content', lc_get_partial_postid('is_header', $variant), 'raw' );

With :

$header_html = get_post_field( 'post_content', apply_filters('wpml_object_id', lc_get_partial_postid('is_header', $variant), 'lc_partial'), 'raw');

Once you've done that, your translation will appear correctly on the frontend.