Skip Navigation

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

Problem:
The client is facing an issue where a static block does not appear on the Arabic translation of the shop page in the Elessi theme, despite being visible in the English version. The root cause is identified as the missing breadcrumb in the Arabic page, which affects the display of the static block set to appear after the breadcrumb.
Solution:
First, ensure that the breadcrumb is visible on the page by setting the custom field

_nasa_show_breadcrumb

to "Copy". To do this, navigate to WPML > Settings > Custom Field Translation, click "Show system fields", find the field

_nasa_show_breadcrumb

, and set it to "Copy". After this, retranslate the Shop page. Additionally, when translating the static block, use the Advanced Translation Editor's search bar to find and translate all URLs by typing "http".

If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 problems persist, please open a new support ticket at WPML support forum 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.

Tagged: 

This topic contains 0 replies, has 1 voice.

Last updated by Andreas W. 1 week, 1 day ago.

Assisted by: Andreas W..

Author Posts
January 20, 2025 at 10:00 pm #16615682

omarA-71

Background of the issue:
I am trying to display a static block in the Arabic translation of the shop page using the Elessi theme. The static block is set to display after breadcrumbs. The issue can be seen at hidden link

The actual static block can be seen after breadcrumbs, it's cards for customers to choose categories for: hidden link

On top of the shop page.

Symptoms:
The static block in the Arabic translation of the shop page does not show up, even though it is correctly displayed in the English version.

Questions:
Why is the static block not showing in the Arabic translation?
How can I ensure the static block appears in the Arabic version?

January 21, 2025 at 10:58 am #16617910

George Botsev
Supporter

Languages: English (English )

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

Hello!
As far as I can see, the block is referring to product categories.
Please make sure that the product categories are translated and that they have at least 1 product assigned to them.
Another possibility is that the block is provided by a custom theme or plugin and that there might be something preventing the showing of the categories - e.g. if the template refers to the categories by ID, but the translated template refers to the same ID of the product categories. Normally we can help you in such case, by checking this further, but it is also possible that you can edit manually the translated page and replace the IDs of the categories with the translated IDs of the translated categories.
To do that, we should need a temporary access - preferrably to a staging site, where we can see the issue in action and potentially thinker something there with the contents so that we can get a better understanding and make attempt to provide you with a solution.

January 24, 2025 at 3:29 pm #16631995

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

In this case we would need to translate the theme option.

I tried doing this by translating the theme option string (admin texts) called:

[theme_mods_elessi-theme-child]shop_brdc_blk > shop-categories-cards

Sadly this did not solve the issue.

This seems to be a compatibility issue between your theme and WPML.

Would it be possible for you to install the latest version of the Elessi Parent Theme on test site, which I will provide for this purpose?

This way we can try to recreate the issue and work on a solution.

Best regards
Andreas

January 25, 2025 at 5:05 am #16633170

omarA-71

Greetings,

I have installed the latest version of the theme.

According to Elessi. Their theme is 100% compaitable with WPML. But there are always some bugs issues which they seem to promptly fix once araised.

Regards.

January 25, 2025 at 3:58 pm #16633756

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Please install the latest version of the Elessi Theme on the following test site:

One-Click-Login:
hidden link

If you find the time, please try to recreate the issue with a simple example and leave me a comment on this ticket once you are done with this task.

I will then investigate, try to find a solution, and escalate the issue internally.

January 25, 2025 at 5:40 pm #16633844

omarA-71

Hello,

I installed the theme and created what's needed.

Here's the page of shop page:
hidden link

Here's the static block I created under "shop-categories" name:
hidden link

The static block is chosen in this page under "Advance Content Options" where you can choose the static block and edit it too:
hidden link

Regards,

January 26, 2025 at 1:54 am #16634472

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Thank you for your cooperation.

Take note, that if I use the "Category Top Content" or "Category Bottom Content" sections, then the translation actually seems to work.

hidden link

It seems not to work when using After Breadcrumb and I will take a closer look into this as soon as possible.

Please take note that I am not working on Sundays and Mondays.

January 28, 2025 at 8:59 pm #16643894

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

This issue has been escalated to our compatibility team for further revision.

Until now I can sadly not offer a workaround for this issue, but I will contact yu as soon I receive feedback from the team.

January 29, 2025 at 5:24 pm #16648016

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I received a reply from the compatibility team:

The issue here is not directly related to the Static block or even the theme options.

The static block will be added after the breadcrumb

But I can see that the breadcrumb is missing in the secondary language (so as a side effect, the block is also missing)

Showing the breadcrumb is enabled at the page level (custom field)

Setting the custom field _nasa_show_breadcrumb to "Copy" and resaving seems to resolve the issue: hidden link

To achieve this go to WPML > Settings > Custom Field Translation and clock "Show system fields". Now search for the field _nasa_show_breadcrumb and set it to "Copy".

Now, translate the Shop page again.

January 29, 2025 at 7:13 pm #16648344

omarA-71

Hello.

Now it shows. But now we got other problem. The links for cards/categories goes to English instead of following the Arabic language

hidden link

If only the arabic translated static block can be edited straight away where the links are edited.

Please advise.

January 29, 2025 at 7:23 pm #16648362

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

It looks like you need to translate these URL when translating the static block.

Use the search bar on the Advanced Translation Editor and type "http" to find all the URLs.

http.jpg