The generate_logo filter allows you to change your logo.

Default (URL): Your logo set in Customize > Site Identity.


Please refer to the Using Filters article to learn how to use this filter.


If you want to show a different logo inside categories, you could do this:

add_filter( 'generate_logo','tu_category_logo' );
function tu_category_logo( $logo ) {
    // Return our category logo URL
    if ( is_category() ) {
        return 'URL TO YOUR CATEGORY LOGO';

    // Otherwise, return our default logo
    return $logo;