Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1409782

    Hello,

    I have a function that will change the logo to a different logo on certain page IDs – now I wanna achieve the same for blog posts of certain categories.

    I used the following code:

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if( is_page(ID) ) {
    		$logo = "URL_to_logo.png";  
    	} elseif ( is_page(anotherID) ) {
    		$logo = "URL_to_logo.png";  
    	} 
    
        return $logo;
    }

    What do I ad?

    Thank you!

    #1409787

    Resolved:

     elseif ( the_category_ID(ID) ) {
    		$logo = "URL_to_logo.png";  
    	}
    #1409981

    Hi fabienneRedUmb,

    We’re glad that you were able to resolve it and thanks for sharing the solution :)

    Best regards,
    Nikko

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