Get header image description to string
-
Default code for header image in TwentyTen is
<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />Now I wish to get header image description and use it for ALT tag.
The question is: How to get header image description? In functions.php I added this:
'footonsand' => array( 'url' => '%s/images/headers/sand_and_foot.jpg', 'thumbnail_url' => '%s/images/headers/sand_and_foot-thumbnail.jpg', 'description' => __( 'Sand and Foot by Aleksandar Urošević', 'twentyten' ) ),and I wish to get this description Sand and Foot by Aleksandar Urošević to some string, for example to $alt, and then echo $alt to page.
TIA
The topic ‘Get header image description to string’ is closed to new replies.