Posts Tagged: functions.php

Add custom image sizes to media windows

I was surprised to find that WordPress doesn’t automatically add custom image sizes to the Add Media popup. Here’s a simple fix based on a function from the exhaustive article by Craig Grella over at

Custom Header Image for WordPress Themes

A client wanted to be able to set a different header image for each page or post on his WordPress site, so I’ve written this function for him. He can now set a custom image for each page header in a few steps: upload the cropped custom images via FTP set the custom field “header”… Read more »