This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues with styles not working when your site is translated into another language, such as Swedish, and encountering invisible text in the banner section, the problem might be related to the theme files. Specifically, conditions in the
header.php
file might be set to show content only on pages with a specific ID, which does not account for translated pages having different IDs.
Solution:
We recommend checking your theme's
header.php
file for conditions that limit content display based on page IDs. You should modify these conditions to accommodate the dynamic nature of page IDs in multilingual setups. Here's an example of how you can adjust the code:
is_page( apply_filters( 'wpml_object_id', 7, 'page', true, apply_filters( 'wpml_current_language', null ) ) )
This adjustment ensures that the correct page ID is used for the current language, allowing styles and text to appear as expected.
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. Additionally, if you need further assistance, please do not hesitate to open a new support ticket with us 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.
This topic contains 10 replies, has 0 voices.
Last updated by 1 year ago.
Assisted by: Shekhar Bhandari.





