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 |
---|---|---|---|---|---|---|
9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | - | - |
- | - | - | - | - | - | - |
Supporter timezone: Africa/Cairo (GMT+02:00)
This topic contains 12 replies, has 2 voices.
Last updated by Osama Mersal 1 year, 7 months ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
July 10, 2023 at 10:12 am #13976613 | |
daniel-viktorV |
Hi there, I have a template part (hero block) to translate. I translated it as described, but it appears wrong on the translated subpages (even though I used the WPML advanced translation tool). So now it is displayed, but unfortunately still not well: the layout is different on the translated pages (constrained). You can see the difference here: Thnaks in advance! |
July 10, 2023 at 10:28 am #13976775 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. Could you please let me know how this template was created? Also, please edit the translated template using your page builder/theme builder and check if it has the correct settings and CSS. Best regards, |
July 11, 2023 at 9:15 am #14012121 | |
daniel-viktorV |
Hi there, it's a default template part of FSE theme Greenshift (so I didn't make it specially): hidden link As per your request, I tried re-editing this section, saved it, and all is well. But for translated pages the display still breaks down... |
July 11, 2023 at 9:46 am #14012491 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Your next answer will be private, which means only you and I can access it. ❌ Please backup your database and website ❌ ✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical. ✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site. Best regards, |
July 11, 2023 at 8:39 pm #14018049 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for the access details. I think that the issue happens because of some CSS. There is a class named "site-title-area wp-block-template-part", which has a width attribute. When disabling this attribute, the width works correctly. Kindly check this video. (hidden link) Best regards, |
July 11, 2023 at 9:04 pm #14018131 | |
daniel-viktorV |
Yes, i see that its some css thing... But my problem is that I didn't change anything in the CSS. I simply want to translate the subpages (which I did with the advanced translation editor). It works fine in the original language, but not for the translated pages. Thanks for your help! |
July 12, 2023 at 7:30 am #14019749 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, There is an error message when trying to edit and update any page/block. (Updating failed. The response is not a valid JSON response.) This issue happens even when WPML is deactivated, so please check it and let me know. Best regards, |
July 12, 2023 at 10:19 am #14022303 | |
daniel-viktorV |
Sorry, there was an authentication problem. I have now transferred a copy of the website to another domain. The login details are the same, but I updated them in the private post above. Hope all is well now! |
July 12, 2023 at 10:45 am #14022689 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, Thanks for your update. It could be a compatibility issue, so please login to this sandbox site and upload your theme. (hidden link) After that, please create a test hero block and assign it to a test page. If the issue is replicable, please let me know how to assign the hero block and reproduce the issue, so I can consult our compatibility team. Best regards, |
July 12, 2023 at 12:29 pm #14024015 | |
daniel-viktorV |
I have created it as requested: hidden link |
July 12, 2023 at 1:37 pm #14024745 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, I installed a local copy of your site to debug the issue further, and the only workaround I found was to use the shortcode instead of the template part. (Kindly check the attached screenshot) Best regards, |
July 13, 2023 at 9:57 am #14030711 | |
daniel-viktorV |
Thank you! The shortcode solution might be temporarily good... |
July 13, 2023 at 10:12 am #14031089 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi, I tried some other solutions, but the shortcode one was the only one working in your case. Also, I couldn't replicate the issue on a clean installation, so this template might be corrupted. Regards, |
The topic ‘[Closed] Template part translation problem’ is closed to new replies.