Header Logo alt attribute is empty

I have seen that the alt attribute is missing from the logo in the header, although I have included it in the mediathek. Where can I change that?

Hi,

You can add an alt attribute to your logo in header-functions.php, line 40, in this code:

echo '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr(get_bloginfo('name')) . '"><img class="site-logo" src="' . esc_url(get_theme_mod('site_logo')) . '" alt="' . esc_attr(get_bloginfo('name')) . '" /></a>';

add your alt text after alt=" like: alt="your-text"

Please let me know how it works.

Kind Regards,
Csaba

Thank you, it worked perfectly!

Hi,

Great! You’re most welcome! If you need help with anything else, please open a new topic.

Have a nice day!

Kind Regards,
Csaba