Archived topic
Different logo for blog and posts
3 replies · Started by Adrian Cojocariu on January 13, 2017
Viewing posts 1–4 of 4
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 :(
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>
Did the trick man, thank you so much !
You're welcome :)
This archived topic is closed to new replies.