To change the URL of the logo on click, follow these steps:
Add this function in child theme functions.php
Example 1
/* Set logo a href link to home */
function sq7_custom_logo_href() {
//$kleo_logo_href = 'google.com/';
$kleo_logo_href = home_url('/home/');
return $kleo_logo_href;
}
add_filter('kleo_logo_href', 'sq7_custom_logo_href');
Replace home_url(‘/home/’); with new route like : home_url(‘/category/post-1’); or for external website use commented line example
Example 2
// Change logo link to members if already logged in
function sq7_custom_logo_href()
{
if (is_user_logged_in()) {
$kleo_logo_href = home_url('/members/');
return $kleo_logo_href;
}
else {
$kleo_logo_href = home_url();
return $kleo_logo_href;
}
}
add_filter('kleo_logo_href', 'sq7_custom_logo_href');
In this example a check is made to see if the user is logged in, if they are, the url for the logo is changed to /members/
. If they’re not then no changes are made. Update /members/
with the slug for your desired page.