Skip to content

Instantly share code, notes, and snippets.

@priyabratary
Created October 9, 2018 09:33
Show Gist options
  • Save priyabratary/35114a7eb76bd16befe6dec262bde47d to your computer and use it in GitHub Desktop.
Save priyabratary/35114a7eb76bd16befe6dec262bde47d to your computer and use it in GitHub Desktop.
polylang 2 logo for 2 language
<?php if ( get_bloginfo( 'language' ) == 'en-US' ) { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>
"><img src="//asdaa-bcw.com/wp-content/uploads/2018/09/asdaa-bcw.jpg" /></a>
<?php } elseif ( get_bloginfo( 'language' ) == 'ar' ) { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>
"><img src="//asdaa-bcw.com/wp-content/uploads/2018/10/asdaa_logo_ar.png" /></a>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment