Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #442162

    How would I add more pages to logo img2, so where it says contact I would like to add more pages including (contact) to use only img2

    add_filter(‘avf_logo’,’av_change_logo_url’);

    function av_change_logo_url($url)
    {
    if( is_front_page() )
    {
    $url = “http://link.to/img.png”;
    }
    if( is_page(‘contact’) )
    {
    $url = “http://link.to/img2.png”;
    }

    return $url;

    }

    #442342

    Hi blonddragon!

    I’m guessing you want to display a different logo on certain pages, is your code not working?

    Best regards,
    Rikard

    #442625

    How do I add more pages to this if( is_page(‘contact’) )? basically home page will have one logo and all the other pages will have a different same logo.

    #442634

    Hi!

    Please add following code to Functions.php file instead

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

    Logo for home will be different and the same for other pages.

    Regards,
    Yigit

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