Hi Alex,
I am also trying to change the logo for different languages on my site. I understand what this code does, but I don’t understand how to use it in my particular case
if ( class_exists( 'WPGlobus' ) ) {
if ( WPGlobus::Config()->language == 'en' ) {
echo '<img src="logo-en.png" />';
} else {
echo '<img src="logo-ar.png" />';
}
}
this is the header code I’m trying to work with, from header.php
<div class='site-logo'>
<a href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>' rel='home'><img src='<?php echo esc_url( get_theme_mod( 'logo', false ) ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>'></a>
</div>
I know the code is looking to the database for the image src.. is it somehow possible to add the language to it? I’m only using French and English.
the site in question is here
https://www.pspkingston.com/advantage
help would be greatly appreciated.
BiL