- This topic has 3 replies, 3 voices, and was last updated 6 years, 7 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I'm using streamline Pro. and need to set some alt text for the logo image. Is there something I could set in functions.php?
This is what is currently in functions:
//* Add support for custom header add_theme_support( 'custom-header', array( 'header_image' => '', 'header-selector' => '.site-title a', 'header-text' => false, 'height' => 40, 'width' => 215, ) );
An help greatly appreciated.
long answer short, as long as you use a background image, an alt attribute is not meant to be added. You might be able to add an aria-label.
Here are just some posts about it:
http://stackoverflow.com/questions/4216035/css-background-image-alt-attribute http://stackoverflow.com/questions/11774984/how-to-give-alt-and-title-for-background-image https://www.christianheilmann.com/2009/02/25/so-how-do-you-add-alternative-text-to-background-images/
Alternatively, you can use an HTML image instead:
You can add Alt Text to your image when you upload it to your Media Library in WordPress.
Code for Paid Members & Clients Only.
© 2022 WPEngine, Inc.