This thread is resolved. Here is a description of the problem and solution.
Problem:
The client's website is not generating the correct HTML language tag when using the WPML plugin.
Solution:
1. We recommend checking the theme's header.php file to ensure that the HTML lang tag is set properly. Look for the following code:
<html <?php language_attributes(); ?>></html>
2. If the code is correct, we suggest clearing the website's cache, particularly if using caching plugins like WP Rocket, and then testing the site again.
3. Another step is to switch to a default WordPress theme to see if the issue persists. This can help determine if the problem is theme-related.
Please note that the solution provided might be irrelevant due to being outdated or not applicable to your specific case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket in the 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 1 reply, has 2 voices.
Last updated by 1 year, 3 months ago.
Assisted by: Marsel Nikolli.