[Support request] Unique header for a specific part of site

Home Forums Support [Support request] Unique header for a specific part of site

Home Forums Support Unique header for a specific part of site

Viewing 3 posts - 31 through 33 (of 33 total)
  • Author
    Posts
  • #1261508
    Tom
    Lead Developer
    Lead Developer

    Try this instead:

    add_filter( 'generate_retina_logo', function( $logo ) {
        // Return our category logo URL
        if ( is_singular( 'pictures' ) ) {
            return 'https://www.imjexa.com/wp-content/uploads/2020/04/imjexa_logo_web_interplay@2x.jpg';
        }
    
        // Otherwise, return our default logo
        return $logo;
    } );

    Yes, both URLs should use https.

    #1262610
    Matthew

    great that works.

    Should I use that last code you put for my regular (non retina logo) too? What I have currently and which does work is:

    add_filter( 'generate_logo','tu_category_logo' );
    function tu_category_logo( $logo ) {
        
        // Return our category logo URL
        if ( is_singular( 'pictures' ) ) {
            return 'https://www.imjexa.com/wp-content/uploads/2020/04/imjexa_logo_web_interplay.jpg';
       }
    
        // Otherwise, return our default logo
        return $logo;
    }

    Using generate_retina_logo instead of generate_logo.

    thanks,

    #1263480
    Tom
    Lead Developer
    Lead Developer

    That’s fine as is. The error came from having two functions with the same name 🙂

Viewing 3 posts - 31 through 33 (of 33 total)
  • You must be logged in to reply to this topic.