WordPress.org

Forums

Highwind
How to change alt image on my blog (2 posts)

  1. Julien75
    Member
    Posted 10 months ago #

    Hello Everyone !

    I need help about my gravatar, I would like to change the alt text of the image but I don't know to do it on my blog.

    You can see my blog here.

    Thank you very much !

  2. ioweuiraosjfosj
    Member
    Posted 9 months ago #

    The avatar is added by function highwind_site_title in highwind-template.php. There you'll find a method called get_avatar which is part of the WordPress API.

    Check out the documentation. The fourth argument $alt is used to set the alt-tag for the gravatar. It defaults to get_bloginfo( 'name' ) in highwind.

    So if you want to alter the alt-tag, either change the code in highwind_site_title or create a child theme and properly override it. I'd recommend the child theme approach, because otherwise your changes will get lost on a theme update.

Reply

You must log in to post.

About this Theme

About this Topic