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?
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
Thank you Basilis! This works :-)
How would I add page id 6474 and 6431 to this?
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
Thank you soooo much :-))