Hello i’m using following code in my child-theme’s functions.php
add_filter('avf_logo_link','av_change_logo_link');
function av_change_logo_link($new_link){
if(is_page(1447) || is_category( 'guest-map' ) ){
$new_link = "https://sample.com/guestmap";
return $new_link;
}
}
The link is changing but there is one problem, it does not change to “sample.com/guestmap” it changes to the current-page-permalink anyone knows about this problem?
best regards
PLEASE CLOSE TOPIC FOUND SOLUTION
Solution is that it must be if(in_category()) and not is_category()
best regards
Hi,
Thanks for sharing your solution, we will close this now. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)
Best regards,
Mike