Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #490010

    Hi I would like to integrate multiple logo’s voor my website http://www.e-conomy.nl
    Now I have one for the whole website, hoewever for a specific service within my website I would like to use a differenti logo.

    How can I do this?

    Thanks for your reply.

    #490014

    Hey e-conomy!

    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_page(9) )
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $logo;
    }

    9 in the code is page ID. You can right click on Chrome or Firefox to inspect elements to find page ID’s http://i.imgur.com/HyPTCRg.jpg

    Best regards,
    Yigit

    #490047

    Super it works!

    One more question. How do I add this different logo to multiple pages?
    Just change the 9 in 9,10,11 in the code?

    Thanks for your very swift reply!

    #490052

    Hey!

    You can change

    if(is_page(9) )

    to

    if(is_page(array(9,5,10) ) )

    :)

    Cheers!
    Yigit

    #490059

    Super thanks!

    #490061

    Hey!

    You are welcome, glad we could help :)

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘use different logo's for my website’ is closed to new replies.