How would I go about changing the header’s logo on a specific page. I know I can ad a transparent one, but I’m hoping there’s a way to swap out the logo without using “display=blank” tags in css.
Hey laptophobo!
Thank you for using Enfold.
You can add something like this in the functions.php file:
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if(is_page(59)) {
$logo = "http://www.mysite.at/wp-content/images/mynewlogo.png";
}
return $logo;
}
Change the page id and the image url.
Best regards,
Ismael
Ismael,
That worked awesomely! Is it possible to also change the tag on it so that when that logo is clicked it goes to this new page instead?
Hi!
Please add following code to Functions.php file as well
add_filter('avf_logo_link','av_change_logo_link');
function av_change_logo_link($link)
{
if(is_page(59)){
$link = "http://kriesi.at";
}
return $link;
}
Best regards,
Yigit
Thanks so much. This works nicely. Have a fine weekend.