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
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
Howdy Yigit,
Works a treat, thank you!
Matt