Merck corporate logo in dark charcoal on a cream background

Adding a custom header image to your WordPress theme

Custom header images give a WordPress site personality, helping small businesses in Sydney, Melbourne, and regional Queensland stand out from templated competitors. A well-chosen banner can reinforce a brand, direct attention to a seasonal promotion, or simply make a homepage feel less generic. Setting one up is usually straightforward, but the exact path depends on which theme you have installed, whether you built the theme yourself, and how much control you want over the layout.

WordPress has supported header images as a core feature since version 2.1, and most modern themes inherit this functionality by default. That means you rarely need to write PHP or touch template files. What you do need is the right image size, a sensible file format, and a clear idea of where the image will appear across desktop and mobile devices.

Choosing the right image dimensions and format

The first step is selecting an image that suits your theme's recommended width. A standard safe choice is 1920 pixels wide by 400 pixels tall, though themes frequently request anything from 1500 to 2560 pixels across to keep the banner crisp on the larger monitors common in Australian design studios and corporate offices in Brisbane and Perth. Height typically sits between 200 and 600 pixels, depending on whether you want a thin strip or a full hero block.

Resolution matters as much as dimensions. Because most Australians browse on retina-capable iPhones or high-DPI Android handsets, a 2x pixel density target helps images stay sharp on small screens. Aim for at least 2880 pixels wide if you want flawless rendering on a 1440-wide laptop, then keep the file compressed to avoid bloating your page weight.

For format, JPEG is the most universal choice for photographic banners, while PNG works when you need transparency, perhaps for an overlay logo that sits on top of a coloured background. WebP, supported by all major browsers since around 2020, offers the smallest file sizes and is worth using if your optimisation pipeline can convert uploads automatically. Avoid large TIFF or BMP files; browsers cannot render them inline.

Uploading through the WordPress Customizer

Most contemporary themes expose header controls through Appearance then Customise in the WordPress dashboard. After opening the Customizer, click Header Image (sometimes labelled Header Media or Banner). You'll be prompted to either upload a new file from your computer or pick one from the Media Library. Drag and drop is supported in modern installations running on PHP 7.4 or later.

Once uploaded, you can crop the image to match the theme's required aspect ratio. If your banner features text such as a slogan or seasonal greeting, position the focal point slightly off-centre so it remains visible when the theme crops for smaller viewports. Many themes also let you choose whether the banner appears site-wide, only on the front page, or on specific page templates. For local businesses, hiding the header image on the contact page is a sensible default, since visitors reaching that page are usually ready to act.

Preview your changes on the right-hand panel of the Customizer before clicking Publish. Australian business owners often manage sites during lunch breaks in AEST or AEDT, so saving in the Customizer rarely conflicts with peak traffic windows.

Adding the image via theme-specific settings

Some premium themes, including many sold through Australian marketplaces such as Envato Market and local resellers, use a dedicated Theme Options or Theme Settings panel instead of the Customizer. These panels typically sit under Appearance or as a top-level menu item such as Theme Settings then Header. Look for fields labelled Logo, Header Background, or Hero Image.

If your theme supports multiple header layouts, you may be able to toggle between full-width banners, boxed layouts, and overlapping headers where the banner sits behind your navigation. When testing these options from a device connected to Aussie telcos such as Telstra or Optus, you can get a realistic sense of mobile load times, since both carriers have strong but variable regional coverage.

Before uploading, double-check the maximum file size the theme allows. Many settings cap uploads at 2 MB, which is usually enough when images are optimised. If a banner fails to upload, compress it further with a tool like ShortPixel, Imagify, or even the built-in media scaler in WordPress.

Enabling custom headers through a child theme

Developers who prefer to register header support manually can do so through a child theme. Open your theme's functions.php file and add an add_theme_support('custom-header') call, passing in arguments for width, height, flex-width, and flex-height. The two flex arguments allow any uploaded image to scale responsively rather than being cropped to fixed pixel dimensions.

You'll also need a header.php template that includes the_custom_header_markup() or, in older themes, the_header_image_tag(). Because direct edits to a parent theme's files are wiped during updates, registering support in a child theme keeps your customisation intact when the parent theme is upgraded, an important consideration for Australian sites that may rely on regular security patches to stay aligned with the Privacy Act 1988 and the Notifiable Data Breaches scheme when collecting contact form data.

If your child theme is missing a header.php file, copy the parent's version into your child directory before editing. Always run a test backup through a plugin such as UpdraftPlus before applying code changes, especially if your site accepts customer details that may fall under local privacy obligations.

Optimising for speed and Australian audiences

Performance is the final consideration. Header images can dominate the visible weight of a homepage, so lazy-loading them where appropriate and serving them through a CDN improves perceived speed. Australian hosting providers such as VentraIP, Webcentral, and NetRegistry offer local data centres that reduce latency for visitors in Adelaide, Hobart, and Darwin, while international CDNs still perform well for cross-region delivery.

Mind the legal side as well. Any banner that includes stock photography must be covered by a valid licence. The Australian Copyright Council publishes guidance on fair dealing for parody, satire, or review, but commercial use generally requires explicit permission. If you use a photograph taken at a local event, secure a model release when individuals are recognisable, particularly for marketing material under the Australian Consumer Law.

Finally, revisit your header every season. Replacing a stock banner with a current campaign image keeps the site fresh without requiring broader redesigns, and it ensures that search engines index a new asset, which can draw additional traffic through image results. Store final images in a dedicated cloud folder, label them clearly, and document the dimensions used so future updates remain consistent.

Format Best for Transparency Typical compression Browser support
JPEG Photographic banners No Lossy, strong Universal
PNG Logos over colour, sharp edges Yes Lossless Universal
WebP Modern sites, smallest payloads Yes Lossy or lossless All major browsers since 2020
SVG Simple icons, illustrated headers Yes Vector, scales infinitely All major browsers
GIF Animated banners (rare) Yes Lossless, large files Universal