[Resolved] Different logo for blog and posts

Home Forums Support [Resolved] Different logo for blog and posts

Home Forums Support Different logo for blog and posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #263774
    Adrian Cojocariu

    Hey man, could you help me out on placing custom header image on blog and posts but all other pages have the normal header image?

    I can’t seem to figure it out ๐Ÿ™

    #263798
    Tom
    Lead Developer
    Lead Developer

    The Page Header add-on has an option to set a custom logo on individual pages and posts, but that could get tedious if you want the same one on all posts and the blog.

    So in that case, I would use GP Hooks in the Before Header Content hook:

    <div class="site-logo">
        <?php if ( is_page() ) : ?>
            <img src="URL TO YOUR PAGE LOGO" alt="" />
        <?php else : ?>
            <img src="URL TO YOUR NON-PAGE LOGO" alt="" />
        <?php endif; ?>
    </div>
    #264187
    Adrian Cojocariu

    Did the trick man, thank you so much !

    #264291
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.