[Resolved] Static block of shop page of theme not showing
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.
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?
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.
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".