[Resolved] Missing Header on Product Page in Secondary Language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is developing a site using WPML for multilingual management and is facing an issue where the header is not displaying on the product page in a secondary language. This issue occurs when the String Translation plugin is active. Solution: The issue was identified in the Woodmart theme's header settings. The 'single_product_header' string in the WPML > String Translation was incorrectly translated from 'none' to 'без' in Bulgarian. This caused the system to attempt to load a non-existent template, resulting in the header not displaying. To resolve this, the client should set the translation of this string back to 'none'.
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 further assistance is needed, 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.
Background of the issue:
I am developing a site and using WPML to manage multiple languages. I am trying to ensure that the product page displays correctly in all languages.
Symptoms:
The header is not displaying on the product page when viewing the site in the secondary language.
Questions:
Could you please look into why the header is missing on the product page in the secondary language and advise on a solution?
Welcome to WPMNL support. Please provide us with the login information of the website copy/staging so we can do troubleshooting without the fear of breaking a live website.
You can set the next reply as private to provide the login info.
Hello!
I am George from the second tier support team and your ticket is assigned to me to check and debug.
The problem with the header is that the admin string option "[xts-woodmart-options]single_product_header" is translated from "none" to "без" in Bulgarian and you can check this out in WPML > String Translation on hidden link
In the file: /wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php there is a specific check:
Basically if the $custom_product_header is not set to "none", then it will show that template.
As the translation is set to something different than none, it is trying to display an non existing template and it fails.
The fix is to "translate" that string to the same value as the original - "none"
I hope this helps you move forward with your project.