generate_mobile_header_logo

The generate_mobile_header_logo filter allows you to change the mobile header logo.

Default (URL): Your logo set in Customize > Layout > Header.

Usage

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

Example

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

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

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