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?
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
Please let me know how it works.
Thank you, it worked perfectly!
Great! You’re most welcome! If you need help with anything else, please open a new topic.
Have a nice day!