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

    Hi there

    I’ve got at site in English as well as Danish, using the polylang plugin.

    When I click the logo on a Danish page, it links correctly to the Danish frontpage, but when I click on the logo on an English page, I get the message that the page couldn’t be found. Is there any way I can change the setting, so the logo on the Danish pages links to the Danish frontpage (as it does now), and the logo on the English pages links to the frontpage in English (which it doesn’t do now)?

    Cheers
    M.

    #844004

    Hey Malene,

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

    add_filter('avf_logo_link','av_change_logo');
    function av_change_logo($link)
    {
    $lang = pll_current_language('locale');
    
    	switch ($lang) {
        case 'en_US':
            $link .= "http://kriesi.at/en/";
            break;
        case 'dk_DK':
            $link .= "http://kriesi.at/dk/";
            break;
    	}
        return $link;
    }

    Best regards,
    Yigit

    • This reply was modified 7 years, 2 months ago by Yigit.
    #844008

    Perfect!

    Thanks a lot – your support is AWESOME!

    #844009

    Hi!

    You are welcome! :)

    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 :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Link from logo on a site with 2 languages’ is closed to new replies.