Pinegrow Community Support Forum

Can't get Header Image to show (WP Starter Theme) - solution


I’ve discovered a section in functions.php which allows one to set parameters for a header image (height, width, default image etc.) and when I run the theme in a browser (local), I can upload and crop my own image, but when I visit the site, there is no sign of my header image.

What else do I need to do? Any ideas? Thanks!


I found that I had missed a vital part - I need to add:

img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />

(with an initial “<” ) in header.php in the appropriate place. Onwards and upwards!

(So is there an official way to include code in this forum? It didn’t like me entering HTML, I’m guessing.)