Custom logo-wrap for WPML
-
Hi!
I’m using WPML and I need to show different banners on my page. Function should look something like this:function language_selector_logo(){ $languages = icl_get_languages('skip_missing=0&orderby=code'); if(!empty($languages)){ foreach($languages as $l){ if ($l['active'] && ($l['language_code'] == 'en')) echo '<div class="logo-wrap"><img src="/image01.jpg" /></div>'; if ($l['active'] && ($l['language_code'] == 'ru')) echo '<div class="logo-wrap"><img src="/image02.jpg" /></div>'; } } }
Could you help me implement this? Can I raplace mh_logo() with this function or that’s not enough?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom logo-wrap for WPML’ is closed to new replies.