Menu
Hi there,
I need to add the following piece of code to a WordPress site…
<img src=”<?php header_image(); ?>” height=”<?php echo get_custom_header()->height; ?>” width=”<?php echo get_custom_header()->width; ?>” alt=”image description” class=”custom_header” />
…however, I want to amend it for instances where no image exists – i.e., if there’s no image, show nothing.
Can someone please help?
Thank you.