0

I am busy with a website that needs a logo on the home page and a different logo on another, how do I achieve this in WordPress?

0

You can use an if statement in the header

if ( is_home() ) {
    <img src="/home-image.png"/>
} else {
   <img src="/other-image.png"/>
}

Below are a few more way to pick a specific page

// When any single Page is being displayed.
is_page();

// When Page 42 (ID) is being displayed.
is_page( 42 );

// When the Page with a post_title of "Contact" is being displayed.
is_page( 'Contact' );

// When the Page with a post_name (slug) of "about-me" is being displayed.
is_page( 'about-me' );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.