Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #374812

    I’m using an enfold child theme (parent: enfold 3.0.4). I would like to alter the alt tag content (currently it pulls the blog name) for my custom logo. Is there a filter that I can use in the child’s functions.php that would let me alter the output for the function ‘avia_logo’?

    #374854

    Hi spectodesign!

    Please add following code to Functions.php file and edit as needed

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub) {
        $sub .= "Company Name";
        return $sub;
    }

    Cheers!
    Yigit

    #375208

    Hi Yigit,

    Thanks, I just made it work with the code below, is your filter preferred over the one I’m using?

    add_filter('avf_logo_alt', 'avf_logo_alt_new');
    
    function avf_logo_alt_new($alt) {
    	$alt = 'my new alt text';
    	return $alt;
    }
    #375210

    Hi!

    No, the one you used is fine :) Let us know if you have any other questions or issues

    Cheers!
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.