skip to Main Content

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( 'wpex_logo_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 the Code Snippets Plugin (or alternative plugin)
Back To Top