Display different image depending on the language with qTranslate X
-
Hi,
Sorry to come back on this subject that was resolved in another topic but the solution proposed did not work for me, along with various others that I found on the internet… I would be very thankful to anyone who would help me understand why.
I need to make an image change according to the language chosen because of the text in it that I cannot overlay because of the design I made.I tried different options such as this:
<?php if( qtranxf_getLanguage() == 'en' ){ ?> <img src="source english" alt="" /> <?php }else { ?> <img src="source french" alt="" /> <?php } ?>
I enter this in the custom field of one of my sections in SKT White theme but actually both images are displayed. Would someone know why?
Thanks in advance for any help!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Display different image depending on the language with qTranslate X’ is closed to new replies.