I would think this would be a simple things to do, but I can’t get it to work.
Here is the function that displays the header image:
[code]
function spacious_header_image_markup( $html, $header, $attr ) {
$output = ”;
$header_image = get_header_image();
if( ! empty( $header_image ) ) {
$output .= ‘<img src=”‘ . esc_url( $header_image ) . ‘” class=”header-image” width=”‘ . get_custom_header()->width . ‘” height=”‘ . get_custom_header()->height . ‘” alt=”‘ . esc_attr( get_bloginfo( ‘name’, ‘display’ ) ) . ‘”>’;
}
return $output;
}
I tried doing this:
[code]
function spacious_header_image_markup( $html, $header, $attr ) {
$output = ”;
$header_image = get_header_image();
if( ! empty( $header_image ) ) {
$output .= ‘<a href=”http://www.google.com”><img src=”‘ . esc_url( $header_image ) . ‘” class=”header-image” width=”‘ . get_custom_header()->width . ‘” height=”‘ . get_custom_header()->height . ‘” alt=”‘ . esc_attr( get_bloginfo( ‘name’, ‘display’ ) ) . ‘”></a>’;
}
return $output;
}
but it didn’t work.
Any help would be greatly appreciated.. thanks!
SteveMTNO