Skip Navigation

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

Problem:
You have customized the display of products using layers on your site and are trying to apply conditions to these layers in different languages using WPML. The condition specified for the layer in English is not applied in Farsi and Arabic translations. It works correctly in Arabic after manual recreation, but not in Persian.
Solution:
If you're experiencing this issue, we recommend you try the following steps:
1. Go to WPML-> Settings-> Custom Fields Translation section
2. Search for the following fields and set them to Copy:
* wd_layout_type
* wd_layout_conditions
3. Click Save
4. Edit the template in the default language
5. Make a minor edit and update it
6. Update its translation
After these steps, the conditions and type should be copied to the translated templates.

Please note that this solution might be irrelevant if it’s outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.

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.

Our next available supporter will start replying to tickets in about 3.19 hours from now. Thank you for your understanding.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Osama Mersal 1 month, 1 week ago.

Assisted by: Osama Mersal.

Author Posts
October 5, 2024 at 7:42 am #16256123

webs

Background of the issue:
I have customized the display of products using layers on my site hidden link. I am trying to apply conditions to these layers in different languages using WPML.

Symptoms:
The condition specified for the layer in English is not applied in Farsi and Arabic translations. It works correctly in Arabic after manual recreation, but not in Persian.

Questions:
Why is the condition not applied to the layer in the Persian translation?
How can I ensure that the conditions for layers are applied correctly across all languages?

October 6, 2024 at 10:43 am #16257779

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.

Would you please elaborate more on the issue to help me understand it better?

It would be very helpful if you could share screenshots or a screen-recorded video while reproducing the issue.

Best regards,
Osama

October 6, 2024 at 12:58 pm #16257986

webs

Yes, I have tried to show you the steps with screenshots, I hope you understand what I mean

1.jpg
2.jpg
3.jpg
October 6, 2024 at 1:39 pm #16258077

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the screenshots. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why 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,
Osama

October 8, 2024 at 7:45 am #16264177

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your reply. I got a message that says this site can't be reached. Please check if the site works on your end.

If so, please check if you have a firewall that blocks some countries or IPs.

Best regards,
Osama

October 8, 2024 at 8:51 am #16264476

webs

I checked the site and it works fine. Also, your colleagues have never had a problem accessing the site
However, I disable the firewall plugin for a while
Please check it again and let me know if there is still a problem

October 8, 2024 at 9:00 am #16264513

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I was able to log in correctly. Please check the following steps to fix the issue:

1- Go to WPML-> Settings-> Custom Fields Translation section
2- Search for the following fields and set them to Copy
* wd_layout_type
* wd_layout_conditions
3- Click Save
4- Edit the template in the default language
5- Make a minor edit and update it
6- Update its translation

After that, the conditions and type should be copied to the translated templates.

Best regards,
Osama

October 8, 2024 at 11:24 am #16265106

webs

I did what you said and the problem was solved. thank you very much