Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1297987

    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.

    #1298279

    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

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