Hi there,
How do I use a different logo file/graphic for blog posts only?
Note. On my blog posts the header section is white (the same color as my logo) so the logo isn’t displayed. I’d like to display a black logo for all the blog posts. Below is an example blog post.
https://affiliatemanager.expert/2021/05/03/music-in-advertising/
Thanks in advance for any help on this.
Hey,
Thanks for contacting us!
Please add following code to bottom of Functions.php file of your child theme
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if(is_single() )
{
$logo = "http://yourdomain.com/link-to-your-blog-logo.jpg";
}
return $logo;
}
Best regards,
Yigit