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

    Hey guys, I opened a similar thread a couple weeks ago which you guys sorted for me really quickly, but the solution for it doesn’t seem to work for the logo.

    No matter where I add ALT text for the logo (you said to put it in “Caption” rather than “alt” tag under Media in WordPress, I have it in ALL fields just in case…), the logo always returns a “” for the alt field.

    Any ideas why the logo doesn’t grab alt information?

    Thanks

    #81671

    Hello,

    Open up framework > php > function-set-avia-frontend.php. Look for this code.

    if(!function_exists('avia_logo'))
    {
    /**
    * return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
    * otherwise display the logo file linked in the css file for the .bg-logo class
    * @return string the logo + url
    */
    function avia_logo()
    {
    if($logo = avia_get_option('avia, logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }
    else
    {
    $logo = get_bloginfo('name');
    $logo = "<h1 class='logo bg-logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }

    return $logo;
    }
    }

    Replace it with this.

    if(!function_exists('avia_logo'))
    {
    /**
    * return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
    * otherwise display the logo file linked in the css file for the .bg-logo class
    * @return string the logo + url
    */
    function avia_logo()
    {
    if($logo = avia_get_option('avia, logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $alt = get_bloginfo('name');
    $logo = "<h1 class='logo'><a href='".home_url('/')."' alt='".$alt."'>".$logo."</a></h1>";
    }
    else
    {
    $logo = get_bloginfo('name');
    $logo = "<h1 class='logo bg-logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }

    return $logo;
    }
    }

    Regards,

    Ismael

    #81672

    I just followed these instructions, but I still don’t have an alt tag. I have the image description in all four places: title, caption, alt and description. And still, I can’t get an alt tag on my logo.

    Guys, this is very important. Huge. I’m the SEO guy and I can’t explain to my boss why the alt tag isn’t showing up. I copied the php that I found here and made the changes. The website is at sdsfamilylaw . com

    #81673

    Hi sdslaw,

    I’m answering your question in your other thread.

    http://www.kriesi.at/support/topic/site-broken-really-really-just-need-an-alt-tag-for-my-logo

    Regards,

    Mya

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Logo has no Alt Tag’ is closed to new replies.