Customising the Header Image in WordPress: The First Impression of Your Website
The header image, also called a masthead image or hero image, is often one of the first elements visitors notice on your website. It shapes the visual impression, supports your brand impact and can immediately communicate what your website is about.
A professional header image can build trust, visually support your services and guide visitors purposefully into the content. A poorly chosen or oversized header image, however, can look unprofessional, worsen loading time and push important content out of view.
What is a header image?
The header image is an image in the upper area of a website. Depending on the theme, it may appear as a wide background image, masthead image, hero section or as part of the website header. It is often located directly below or behind the logo and navigation.
Typical areas of use are:
- Homepage: Large image with a clear message and call to action.
- Service pages: Visual introduction to an offer.
- Blog or magazine: Featured image for posts or categories.
- Landing pages: Emotional entry point for campaigns or offers.
- Company pages: Team photo, location, product or brand motif.
Not every theme uses a classic header image. Some themes instead use featured images, background images, cover blocks or page builder sections.
1. Changing the header image in classic themes via the Customizer
Many classic WordPress themes allow you to customise the header image via the Customizer. You can often find it under:
Appearance > Customizer > Header Media
Depending on the theme, the section may also have a different name, for example Header Image, Header Image, Site Identity or Theme Options.
The typical process:
- Open Appearance > Customizer in the WordPress dashboard.
- Look for the Header Media section or a comparable theme option.
- Select an existing image from the media library or upload a new image.
- Crop the image if necessary.
- Check the preview on desktop and mobile device.
- Click Publish when everything looks correct.
2. Changing the header image in block themes in the Site Editor
Modern block themes often work with the WordPress Site Editor. In this case, the header is no longer managed classically via the Customizer, but edited as a template part in the Site Editor. According to WordPress documentation, the Site Editor is available for block themes and allows headers, footers and other website areas to be edited with blocks. ([wordpress.org](https://wordpress.org/documentation/article/site-editor/?utm_source=chatgpt.com))
You can usually find the Site Editor under:
Appearance > Editor
There you can open the header area and, depending on the theme, edit images, cover blocks, groups, navigation, logo and other elements.
The process may differ depending on the theme:
- Open Appearance > Editor.
- Select the header or the corresponding template part.
- Edit the image, cover or background area.
- Replace the existing image with a new image from the media library.
- Check the desktop, tablet and mobile display.
- Save the change.
3. Changing the header image in page builders
If your website was created with a page builder such as Elementor, Divi, Beaver Builder or a theme builder, the header image may not be managed through WordPress itself, but through the respective builder.
In such cases, you will often find the image in:
- a hero section,
- a cover element,
- a background image setting,
- a template for the header or page header,
- a global theme builder template.
Before making changes, check whether the image is used only on a single page or globally on many pages. Especially with global templates, a small change can have far-reaching effects.
4. Choosing the right image size
The ideal image size depends on the theme, layout and intended use. A full-width header image requires different dimensions than a small header photo in a narrow sidebar.
As a rough guide:
- Wide header image: approximately 1600 to 2000 pixels wide.
- Very large hero image: depending on the layout, up to around 2400 pixels wide, but only if really necessary.
- Normal page header image: often 1200 to 1600 pixels is sufficient.
- Mobile display: check the image crop separately.
It is important that the image is not significantly larger than it is actually displayed. A 5000-pixel-wide smartphone photo is unnecessarily large for most header areas and worsens loading time.
5. Optimising file size
Header images are often particularly critical for loading time because they appear in the visible upper area. An oversized header image can slow down the initial page load and worsen important performance metrics.
As a rough guideline, a header image should be as lightweight as possible. For many websites, values below 200 to 400 KB are sensible, depending on motif, quality, format and visible size. A very detailed large image may require slightly more, but should be deliberately optimised.
Optimise header images before uploading:
- reduce the image to sensible dimensions,
- apply compression,
- check WebP,
- remove unnecessary metadata,
- test mobile display,
- delete image variants that are not needed.
6. Using WebP for header images
WebP is a modern image format that often enables smaller files than JPEG or PNG at comparable quality. WordPress has supported WebP natively since version 5.8. ([make.wordpress.org](https://make.wordpress.org/core/2021/06/07/wordpress-5-8-adds-webp-support/?utm_source=chatgpt.com))
For header images, WebP can be particularly useful because large visual elements should load quickly. Nevertheless, the same applies: a WebP image should also be correctly scaled and compressed. An oversized WebP image can still be too heavy.
7. Header image and Core Web Vitals
The header image is often the largest visible element in the upper area. As a result, it can influence the Largest Contentful Paint, or LCP. LCP is an important metric for perceived loading speed.
For good performance, the most important header image should be available quickly. Therefore, in many cases it should not be delayed by lazy loading. Lazy loading is more suitable for images further down the page.
Check the following for header images:
- Is the image sufficiently compressed?
- Does it have suitable dimensions?
- Is it delivered in the correct format?
- Is it not delayed unnecessarily?
- Are there layout shifts during loading?
- Is the mobile version optimised?
Good Core Web Vitals values result from several factors: hosting, image optimisation, caching, theme, CSS, JavaScript and clean layout structure.
8. Choosing the image motif deliberately
A header image should not only fit technically, but also in terms of content. It should support the message of the page and not distract from the actual content.
Good header images are:
- relevant: They match the topic of the page.
- trustworthy: They look professional and authentic.
- calm enough: Text remains easy to read if it is placed over the image.
- brand-consistent: Colours and style match the company.
- not interchangeable: Original images often have a stronger effect than generic stock photos.
Avoid images that may look nice but have nothing to do with the page. Visitors should immediately understand the purpose of the page.
9. Text on header images: Pay attention to readability
Many websites place headings, slogans or buttons over the header image. This can work well if contrast and image crop are right. It becomes problematic when the text sits on a busy background or is cut off on mobile devices.
Pay attention to:
- sufficient contrast,
- calm image areas behind text,
- no important image details behind buttons,
- readable font size on mobile devices,
- sufficient spacing between text and image edges,
- correct display in different screen sizes.
A slightly darkened overlay can help make text easier to read. However, do not overdo it so that the image still looks natural.
10. Checking mobile display
A header image often looks good on a large desktop monitor, but can become problematic on smartphones. Wide images are often cropped or scaled differently on small screens.
Therefore, always check:
- Is the most important image area visible on mobile?
- Is text not cut off?
- Do buttons remain usable?
- Is the file size acceptable for mobile users?
- Is the image not displayed too tall?
- Is the navigation still easy to access?
Many themes offer separate settings for desktop, tablet and smartphone. Use these options if your header image does not look optimal on mobile devices.
11. Alt text and accessibility
Whether a header image needs alt text depends on its function. If the image is purely decorative, an empty alt text can make sense. If the image conveys important information, it should be given meaningful alt text.
Example of an informative header image:
Team of Example AG in front of the company location in Chur
Example of a decorative header image:
Avoid keyword stuffing. Alt text should describe what is relevant for users. This helps accessibility, image search and general understanding.
12. SEO: How a header image has an indirect effect
A header image does not automatically improve your ranking. However, it can indirectly contribute to SEO quality if it supports loading time, user experience, brand impact and content clarity.
Important from an SEO perspective:
- fast loading time,
- suitable image size,
- descriptive file name,
- meaningful alt text, if informative,
- no oversized files,
- mobile optimisation,
- no layout shifts,
- clear heading in HTML, not only in the image.
Important: Do not write central texts such as headings or service promises only directly into the image. Search engines, screen readers and mobile users benefit when important text is available as real HTML text.
13. GEO: Header images and a clear page message
GEO, meaning Generative Engine Optimization, mainly concerns the comprehensibility of content for AI-supported search and answer systems. A header image alone is not decisive for this. What matters is that the image, heading, introduction and page content convey the same clear message.
Helpful for GEO are:
- clear headings,
- short introduction with a clear page topic,
- suitable image motif,
- meaningful alt text for informative images,
- no important information only as image text,
- structured content below the header.
If your page explains a service, for example, the visible introduction should immediately make clear which service is offered, who it is relevant for and what the next step is.
14. Common mistakes with header images
Many header problems arise from oversized files, unsuitable motifs or a lack of mobile checks.
- Image file too large: Slows down page loading.
- Wrong image crop: Important motif is cut off on mobile.
- Text in the image instead of HTML: Bad for accessibility and SEO.
- Poor contrast: Heading or button is barely readable.
- Generic stock photo: Looks interchangeable and does little to build trust.
- Lazy loading for hero image: Can cause the most important image to load too late.
- No check after theme change: Header areas change depending on the theme.
- Unoptimised PNG for photo: Often leads to unnecessarily large files.
Recommended procedure
- Check theme type: Customizer, Site Editor or page builder?
- Select a suitable image: The motif must match the page and brand.
- Crop the image: Take desktop and mobile display into account.
- Reduce file size: Compress and avoid unnecessary pixels.
- Choose format: WebP, JPEG or PNG depending on intended use.
- Upload image: Via media library, Customizer, Editor or page builder.
- Check text readability: Check contrast, overlay and mobile view.
- Test performance: Use PageSpeed Insights or browser tools.
- Maintain alt text: Only if the image is informative.
- Check several pages: Especially with global headers.
Frequently asked questions about the header image in WordPress
Where do I change the header image in WordPress?
With classic themes, usually under Appearance > Customizer > Header Media. With block themes, often under Appearance > Editor. With page builders, the header image may be managed in the respective builder or theme builder.
Why do I not see an option for Header Media?
Not every theme supports classic header images. Modern block themes or page builders often use other methods for editing the header.
How large should a header image be?
For wide header images, 1600 to 2000 pixels wide is often sensible. The specific layout is decisive. The image should not be significantly larger than it is actually displayed.
Should a header image be under 200 KB?
This is a good target value in many cases, but not always mandatory. Depending on motif and size, 200 to 400 KB may also be acceptable. What matters is that the image looks visibly good and loads quickly.
Is WebP recommended for header images?
Yes, often. WebP can enable smaller files at comparable quality. WordPress has supported WebP natively since version 5.8. ([make.wordpress.org](https://make.wordpress.org/core/2021/06/07/wordpress-5-8-adds-webp-support/?utm_source=chatgpt.com))
Should the header image be lazy loaded?
Usually not if it is the most important visible image in the upper area. Lazy loading is more suitable for images further down the page.
Should I write text directly into the header image?
Better not for important content. Headings and central statements should be integrated as real HTML text so that they are more accessible for search engines, screen readers and mobile devices.
Why does my header image look different on mobile?
Wide images are often cropped or scaled differently on small screens. Therefore, always check the mobile view and choose a motif with important content in the centre of the image.
Fast hosting for visually strong websites
Header images shape the first impression of your website. With optimised images, clean caching and WordPress hosting from CURIAWEB, you create a strong foundation for fast loading times, stable performance and professional web presences.
View WordPress hosting from CURIAWEB