Change images in header.php
-
Hi, I need to change two buttons on the header.php by language.
My images are in / wp / wp-content / uploads / name_image.jpg.
The code I have is:<? php if (qtrans_getLanguage () == "es") { echo "<img src=\"". get_bloginfo('stylesheet_directory'). "/wp/wp-content/uploads/name_image_es.jpg." />"; } ?> <? php if (qtrans_getLanguage () == "en") { echo "<img src=\"". get_bloginfo('stylesheet_directory'). "/wp/wp-content/uploads/name_image_en.jpg" />"; } ?>[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
But it does not work. I need help. thanks
ponchyPosts: 2
Joined: Fri Nov 01, 2013 7:39 am
The topic ‘Change images in header.php’ is closed to new replies.