Forums

[Plugin: WPML Multilingual CMS] Different header image for each language (3 posts)

  1. rajaman
    Member
    Posted 2 years ago #

    How can I display a different header image for each language? I'd like to show a header image for English and a different one when the website is viewed in another language. Is there some sort of a conditional tag to achieve this?

    http://wordpress.org/extend/plugins/sitepress-multilingual-cms/

  2. greenwizard
    Member
    Posted 1 year ago #

    i am looiking for the same thing ? anyone@

  3. Jandal
    Member
    Posted 1 year ago #

    A hack that I used to achieve different headers, I was only using 2 languages.

    I had the following code in my header.php file, and you will need to check how WPML is set up to display each language. eg /en/ or ?lang=en or how ever you have done it.

    <?php if (strstr($_SERVER["REQUEST_URI"], '/en/') ) { ?>
    			<img style="" src="/wp-content/themes/sandbox/images/header_logo_en.png">
    		<?php } else { ?>
    			<img style="" src="/wp-content/themes/sandbox/images/header_logo_jp.png">
    		<?php } ?>

    HTH,
    =-)

Topic Closed

This topic has been closed to new replies.

About this Topic