WPML & Genesis Header

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  cehwitham 1 year, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37013

    mikelbyl
    Participant
    Post count: 2

    Hi – I’m using WPML with Genesis and News and though I (more or less) know how to enable the translated header image (from the WPML site) I don’t know how to implement this in Genesis.

    The advice at WPML.org is this:

    <?php
    if(ICL_LANGUAGE_CODE == 'en'){
    ?>
    <img src "PATH TO ENGLISH HEADER IMAGE">
    <?php
    }elseif(ICL_LANGUAGE_CODE == 'fr'){
    ?>
    <img src "PATH TO FRENCH HEADER IMAGE">
    <?php
    }

    But how can I implement this correctly?

    #43688

    cehwitham
    Participant
    Post count: 396

    Hi Mike,

    Add the code you’ve been given into your functions.php file as a function. Then you’ll need to unhook the current header image and add in your function using the genesis_header hook.

    Chris


    Twitter: cehwitham Web: cehwitham.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.