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

    Hello,
    is there a possibility to change the header logo according to different categories?
    All posts, archives and sub-categories of a specific category should show the same header logo.

    I tried this, but it doesn’t work:

    add_filter('avf_logo','av_change_logo_url');
    function av_change_logo_url($url)
    {
        if( is_category('slug') )
        {
            $url = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $url; 
    }
    #754113

    Hey Neverlands,

    You can use conditional tags: http://codex.wordpress.org/Conditional_Tags to use different images on different pages or you append the page/post id to the logo class so that you can style the logo on a per post basis.

    Best regards,
    Jordan Shannon

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