• Bing has queried my Gravatar image. Says it has no alt attributes. How can I fix this please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • URL?

    Hello Ugochi,

    Sorry for the issue that you’re having with the Gravatar image. I found a good article that gives you seven possible reasons for the error from Bing and then gives you code to fix it. Check it out and let us know if that doesn’t provide the fix that you need.

    I hope that helps!
    Arnel C.

    Thread Starter Ugochi

    (@teshuva)

    Thread Starter Ugochi

    (@teshuva)

    Hi @arncus, will check it out now.
    Thanks

    Thread Starter Ugochi

    (@teshuva)

    Hi @arncus,
    I have read great feedbacks on this code. Unfortunately for me, when I put in the code, the editor puts a bad mark on the line;

    $text = str_replace(‘alt=\’\”, ‘alt=\’Avatar for ‘.$alt.’\’ title=\’Gravatar for ‘.$alt.’\”,$text);
    return $text;
    And says; ‘expected an identifier and instead saw ‘ ‘

    What can I do?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to give my Gravatar image alt attributes’ is closed to new replies.