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

    Hi šŸ‘‹

    I have used this thread to insert a different logo on 1 of the pages. I would now like it on 3 more pages.

    I have tried to insert de page id’s seperated by comma’s. Unfortunately, it doesn’t work.

    ‘add_filter(‘avf_logo’,’av_change_logo’);
    function av_change_logo($logo)
    {
    if(is_page(6471,6624,6474,6431) )
    {
    $logo = “URL MEDIAFILE”;
    }
    return $logo;
    }

    Do you see what I did wrong?

    #974987

    Hey maaikevk,

    add_filter(ā€˜avf_logoā€™,ā€™av_change_logoā€™);
    function av_change_logo($logo)
    {
    if(is_page('6471') || is_page('6624') )
    {
    $logo = ā€œURL MEDIAFILEā€;
    }
    return $logo;
    }

    Try it like here
    to have each one of them in a different ID.

    Let us know if it works

    Best regards,
    Basilis

    #975766

    Thank you Basilis! This works :-)

    How would I add page id 6474 and 6431 to this?

    #975768

    Hi,

    You can use the code as following

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
    if(is_page('6471') || is_page('6624') )
    {
    $logo = "URL MEDIAFILE";
    }
    if(is_page('6474') || is_page('6431') )
    {
    $logo = "URL MEDIAFILE";
    }
    return $logo;
    }

    Cheers!
    Yigit

    #975776

    Thank you soooo much :-))

    #975779

    Hi,

    You are welcome!
    Let us know if you have any other questions or issues :)

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Different logo on 4 specific pages’ is closed to new replies.