Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Page Specific Logo using Transparent Header #1174664

    This function allows me to replace everything located between the subtext DIV. Is this the only way to set and alternative transparent logo on a specific page? Or is there a way to just change the SRC in the image tag without having to re-type out the entire contents?

    add_filter('avf_logo_subtext','av_change_logo_subtext');
    function av_change_logo_subtext($subtext)
    {
        if(is_page(47) )
        {
        $subtext = '<img src="./wp-content/uploads/2020/01/Decepta_Con_White-WEB.png" alt="Decepta Con" />';
       }
        return $subtext;
    }
    • This reply was modified 6 years, 1 month ago by MRMCrawford.
Viewing 1 post (of 1 total)