Skip to content

Snippet: Custom Logo URL/Link

By default the theme logo will always link to the homepage. The following snippet shows how you can change the logo URL if you need it to link somewhere else.

/**
 * Modify the header logo url.
 *
 * @link https://total.wpexplorer.com/docs/snippets/custom-logo-url/
 */
add_filter( 'totaltheme/header/logo/link_url', function( $url ) {
    $url = 'YOUR CUSTOM URL HERE';
    return $url;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top