Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #602928

    Hi,

    I’m using the code below to give pages a different logo, but it doesn’t seem to work for portfolio-items. Any suggestions?

    if( is_page(‘Seiran’) )
    {
    $url = “/wp-content/uploads/2015/12/logo_maia_ligfietsen.png”;
    }

    site: maialigfiets.nl

    #602962

    Hi Roderick!

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(is_singular( 'portfolio' ))
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $logo;
    }

    Best regards,
    Yigit

    #602992

    Hi thanks! is it also possible to do a logo for each seperate portfolio item or a category?

    #602994

    Hi!

    Yes that would be possible as well by altering the code. Could you please post the link to your pages where you would like to use different logo?

    Best regards,
    Yigit

    #603002

    http://maialigfiets.nl/portfolio-item/hase-pino/ this should have the purple logo which worked great with your code, but we will also be adding other portfolio items later on that will have another logo

    #603004

    Hey!

    Please add following code to Functions.php file as well

    add_filter('avf_logo','av_change_logo_single');
    function av_change_logo_single($logo)
    {
        if(is_singular( 'portfolio' ) && is_single( '4313' ) )
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $logo;
    }

    Cheers!
    Yigit

    #734489

    FYI

    This doesn’t work if you have “Header Transparency Logo” set: it seems to override this.

    Turn it off and this code works like a charm.

    #734533

    Hi!

    Cool, happy it worked for you.
    Please feel free to let us know if you need anything else from us.
    Please also remember to rate Enfold, at themeforest.
    It really helps us out.

    Thank you very much

    Regards,
    Basilis

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