Open

Topic Tags: Language Switcher

Symptoms

If you are using WPML 4.3.0, 4.3.1, 4.3.2 and 4.3.3 when you use a language switcher with an image for a flag, then you might have missing ALT tag for the image.

Workaround

Go to sitepress-multilingual-cmsclasseslanguage-switcherclass-wpml-ls-model-build.php
Change this code from:

		            $ret[ $code ]['flag_alt']   = ( $display_name || $display_native ) ? '' : $data['translated_name'];

to:

		            $ret[ $code ]['flag_alt']   = ( $display_name || $display_native ) ? $data['native_name'] : $data['translated_name'];

Leave a Reply

Please leave here comments about this page only.
For technical support and feature suggestions, head to our forum. We are waiting there!

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>