Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #435892

    Howdy,

    I can see that the main logo is being generated by the avia_logo().

    My question is, we want to change the link on the main logo to a different one if the user is logged in or not logged in [ is_user_logged_in() ] where is the most appropriate place to do that?

    Matt

    #436165

    Hey Matt!

    Please add following code to Functions.php file in Appearance > Editor and adjust as needed

    add_filter('avf_logo_link','av_change_logo_link');
    function av_change_logo_link($link)
    {
    if ( is_user_logged_in() ) {
        $link = "http://kriesi.at";
    }
    else {
        $link = "http://www.google.com";
    }
        return $link;
    }

    Best regards,
    Yigit

    #436448

    Howdy Yigit,

    Works a treat, thank you!

    Matt

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Swap link on main logo depending on user login status’ is closed to new replies.