This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needs to add an ALT attribute to the language flag icons.
Solution:
We recommended the steps provided in a previously resolved support ticket. Before proceeding, ensure to perform a full site backup.
Got to ../wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/ directory and edit the class-wpml-ls-model-build.php, line 190.
Remove this line:
$ret[ $code ]['flag_alt'] = ( $display_name || $display_native ) ? '' : $data['translated_name'];
Replace it with this line:
$ret[ $code ]['flag_alt'] = ( $display_name || $display_native ) ? $data['native_name'] : $data['translated_name'];
Refer to the following links for more details:
If this solution does not seem relevant to your issue, please do not hesitate to open a new support ticket with us here.
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.