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

    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.

    #430149

    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

    #430484

    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?

    #430488

    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

    #430492

    Thanks so much. This works nicely. Have a fine weekend.

    #430506

    Hi!

    You are welcome, glad we could help :)
    You too have a great weekend!

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Change a header logo on one page only?’ is closed to new replies.