Skip to content
🎉

Cyber Sale Blowout! Get 50% OFF — Limited Time Only!

Click to Save 50% (opens in a new tab)

Custom Header Logos

In this article

    If you want to alter the main header logo for specific pages, archives, posts or various sections of the site you can do so easily using the theme filter “wpex_header_logo_img_url”. See the example function below:

    // Custom Logo
    add_filter( 'wpex_header_logo_img_url', function( $logo ) {
    
        // Change image for your front page
        if ( is_front_page() ) {
            $logo = 'YOUR CUSTOM IMAGE ID or URL';
        }
    
        // Return logo
        return $logo;
    
    } );
    
    // Custom Retina logo
    add_filter( 'wpex_retina_logo_url', function( $logo ) {
    
        // Change image for your front page
        if ( is_front_page() ) {
            $logo = 'YOUR CUSTOM IMAGE ID or URL';
        }
    
        // Return logo
        return $logo;
    
    } );
    Related Articles
    Back To Top