Flag icons – missing alt attributes (quick fix)
-
Hi, if I use
echo qtranxf_generateLanguageSelectCode(‘image’);
in my theme’s template to generate the flag icons, the
img
tags don’t havealt
attributes, which are required in mosthtml doctypes
.My temporary fix is to change qtranslate_widget.php‘s
line 156
from:if($style==’image’) echo ‘<img src=”‘.$flag_location.$q_config[‘flag’][$language].'”/>’;
to:
if($style==’image’) echo ‘<img src=”‘.$flag_location.$q_config[‘flag’][$language].'” alt=”‘.$q_config[‘language_name’][$language].'”/>’;
It seems working fine! ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Flag icons – missing alt attributes (quick fix)’ is closed to new replies.