• I’m using a translator plugin for one of the sites I’m working on. I wanted to know if it was possible to have the logo change with the language.

    I have a Spanish logo and a English logo and want it to change when they use the translator. Is this possible?

    http://www.hispanicalliance.com/en

Viewing 3 replies - 1 through 3 (of 3 total)
  • wpismypuppet

    (@wordpressismypuppet)

    I believe you’ll want to wrap the text in this function: __() found here:

    http://codex.wordpress.org/Function_Reference/_2

    Maybe something like this, taken from your website’s code:

    <div id="logo"><h1><a href="/" onclick="javascript:_gaq.push(['_trackEvent','Header - Expiry - Lander', 'logo-click', 'hispanicalliance.com']);"><?php echo __( 'hispanicalliance.com' ); ?></a></h1></div>

    Thread Starter richwininc

    (@richwininc)

    Where do I this? And does that change the logo when people change from spanish logo to english logo?

    wpismypuppet

    (@wordpressismypuppet)

    In your header.php file is the code pumping out the logo. I don’t know what theme you are using, but if you are unfamiliar with how to edit the template files, you should read:

    http://codex.wordpress.org/Editing_Files

    And since the logo is mostly text (meaning that the words hispanicalliance.com in the logo are text, not an image) except for that downward triangle with an H in it, it should translate with the rest of the site. Though if you are using a plugin to do it, you might want to read the FAQs and documentation of the plugin to see what they suggest. __( ) is WordPress’ function for translation, so this should not be an issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Logo change wih language’ is closed to new replies.