How to Change the URL Destination of Logo

Description

The astra_logo_url filter allows you to change the URL destination of your logo for entire Site or any specific Page/Post.

Usage

// Filter callback function
function example_callback( $url ) {
    //Process logo url here
    return $new_logo_url;
}
add_filter( 'astra_logo_url', 'example_callback', 10 );

Parameters

$url:
    (string) Existing url destination of Logo.

Example

/**
 * Change the Site Logo only for Home Page
 *
 * @param string $url            Existing site logo url
 * @return string $url           updated site logo url
 */
function astra_logo_url_callback( $url ) {
	if ( is_home()) {
	 	$url= 'https://enter-your-logo-url-here';
	}
	return $url;
}
add_filter( 'astra_logo_url', 'astra_logo_url_callback', 10 );