Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #462574

    Hi folks,

    we are using WPML to have an English and a German version of our website.

    But unfortunately there is only one “homelink” when clicking the logo …
    So even when using the English version the click on the main logo brings the user back to the starting page – written in German language.

    How can i have different “home links” behind my title logo for different languages ?

    Thanx in Advance !

    Stefan

    #462741

    Hey stefan_lt!

    Please add following code to functions.php file in Appearance > Editor

    add_filter('avf_logo_link','av_change_logo_link');
    function av_change_logo_link($link)
    {
    if(ICL_LANGUAGE_CODE=='en'){
        $link = "http://kriesi.at";
    }
    elseif(ICL_LANGUAGE_CODE=='de'){
        $link = "http://kriesi.at/german-version";
    }
        return $link;
    }

    Best regards,
    Yigit

    #463035

    Works great !
    Thank you Yigit !!!

    #463039

    Hey!

    You are welcome, we are always happy to help :)
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Cheers!
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘WPML / Different "home-links" for the main-logo’ is closed to new replies.