On this page
What this issue is
A hero image is the large picture at the top of a landing page. A product image is the main photo on a product page. A broken one is an image the browser asks for but does not get, or gets in a form it cannot show. The page still loads, so nothing looks like an outage. The key picture is simply missing.
Common causes: the file was deleted or renamed, the URL points to a staging site, a CDN or image optimiser stopped working, the file type is not supported, lazy loading failed, or a security rule blocks the image. This guide covers the main hero or product image. Other broken images on the page are a separate issue.
Why it costs you leads or sales
The hero image is usually the first thing people see. If it is missing, the page looks unfinished or unsafe, and the visitor cannot see what you sell. Ad traffic is hit hardest, because people arrive from a paid click and decide in seconds. You pay for the click and lose the visit.
A missing image can also push your headline and button around. Text may overlap or the form may jump out of view. On product pages, shoppers will not buy something they cannot see.
Example: illustrative numbers only. A page that converts at 4% with its hero image can drop sharply when the image fails.
- Ad clickVisitor reaches the page
- Hero imageReturns 404 or is blocked
- Trust and offerPage looks unfinished
- Form or Add to cartNever reached
The visitor arrives, but the image fails and trust drops before the call to action.
How to check if your site has it
Load the page in a private window
Use a fresh incognito window so cached images do not hide the problem. Check desktop and a phone-sized width.
Open the Network tab
In Chrome, press F12, choose Network, then filter by Img and reload. Look for red rows or status codes such as 404, 403 or 500.
Inspect the image element
Right-click the empty area, choose Inspect and look at the img tag or CSS background-image. Copy the URL and open it in a new tab.
Check the Console
Look for blocked content, CORS or mixed content messages (an http image on an https page).
Test from another network
Try mobile data or another country. A CDN or firewall rule can block some visitors only.
| What you see | Likely cause |
|---|---|
| 404 Not Found | File deleted, renamed or wrong path |
| 403 Forbidden | Permissions, hotlink protection or firewall rule |
| Blocked: mixed content | Image URL starts with http on an https page |
| 200 but nothing shows | Wrong file type, corrupt file, or CSS hides it |
| Image URL contains staging or localhost | Page copied from a test site |
| Loads only after scrolling, then not at all | Lazy-load script error |
How to fix it
Fix the cause the Network tab pointed to. The steps differ by platform, so start with yours.
Re-upload or relink the image
Open the page in the editor, select the image block and use Replace. Check Media Library that the file still exists.
Clear caches and optimisation
Purge your caching plugin and CDN. If you use an image optimiser or WebP plugin, switch it off briefly to see if the image returns.
Fix old URLs after a move
If URLs still point to staging or http, run a search-and-replace on the database with a trusted tool, after taking a backup.
Check lazy loading
Exclude the hero image from lazy loading in your performance plugin settings.
Check the product media
In Admin, open Products, choose the product and confirm the image appears under Media. Re-upload it if it shows an error.
Check the theme section
In Online Store, Themes, Customize, open the hero section and re-select the image. Deleted files from Content, Files leave empty slots.
Use supported formats
Upload JPG, PNG, WebP or GIF files within Shopify's size limits.
Check the Assets panel
Open Assets and confirm the file exists. Re-select it on the image element or in the background settings.
Republish
Publish the site again so the live version picks up the change.
Replace the image
Click the image or strip background in the editor, choose Change Image and pick one from the Media Manager.
Publish
Publish the site and test the live URL.
Re-add the image
Edit the page section, open the background or image block and upload the file again.
Check the image format
Use JPG or PNG under the file size limit, and save the page.
Re-select from Media
In the funnel or website builder, click the image element and choose the file from Media Storage again.
Save and publish
Save the step, publish it and reload the live page.
Correct the path
Make sure the src points to a file that exists, with matching case. Linux servers treat Hero.jpg and hero.jpg as different files.
Use https and absolute or root paths
Avoid http URLs, localhost and staging hosts in src and CSS url().
Add a fallback
Use width, height and a background colour so the layout holds if the image fails.
<img src="/images/hero.webp" alt="Describe the offer" width="1200" height="600" fetchpriority="high">Broken
- Image URL returns 404
- Empty gap above the headline
- Visitors leave before the form
Fixed
- Image returns 200 and displays
- Layout reserved with width and height
- Offer visible on first view
How to confirm it's fixed
- The image URL opens directly and returns status 200
- The image shows in a private window on desktop and mobile
- The Network tab shows no red image rows
- No mixed content or blocked messages in the Console
- The live page, not just the editor preview, shows the image
- Product pages show the main image and any variants
How to prevent it happening again
- Never delete files from the media library without checking where they are used
- After a migration or staging push, test key pages and search for staging URLs
- Keep hero images out of lazy loading
- Re-check landing pages after theme, plugin, CDN or firewall changes
- Set width and height so a failure does not wreck the layout
- Monitor your key pages on a schedule instead of waiting for a customer to tell you
How FunnelGuard handles this
FunnelGuard detects this today. A robot visitor loads your funnel pages on a schedule, from the EU or the US, and checks the page, including whether the main image loads. If something fails, it is re-checked from a second region before one alert goes out, by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.
Test visits are marked (utm_source=funnelguard, fg_test=1) and never click real ads. The Free plan covers 1 site and 2 journeys with daily checks, no card needed. Paid plans start at $39/month with a 3-day free trial. A free read-only website audit is also available.
Questions people ask
Why is my hero image not showing on my website?
The most common causes are a deleted or renamed file, a wrong path, an http URL on an https page, or a lazy-loading or caching problem. Open your browser's Network tab, reload the page and check the status of the image request. A 404 means the file is missing, a 403 means access is blocked.
How do I find out why a product image is not loading?
Right-click the empty space, choose Inspect and copy the image URL, then open it in a new tab. If it fails, the file or path is wrong. If it opens, check the Console for mixed content or blocked messages and clear your cache and CDN.
Why does my image show in the editor but not on the live site?
The live page may use a cached copy, a different URL or an unpublished change. Publish again, purge your cache and CDN, and test in a private window. Also check the URL does not point to a staging or local address.
Can a broken hero image affect my ad results?
Yes. Paid visitors land on the page and may leave quickly if the main picture is missing, so you pay for clicks that do not convert. Fixing the image can recover that traffic, though the exact effect varies by site.
Should I lazy-load my hero image?
No. The hero is visible straight away, so load it immediately and consider fetchpriority="high". Lazy loading is better for images further down the page.
Why is my Shopify product image blank?
The media file may have failed to upload, been deleted from Content, Files, or use an unsupported format. Open the product in Admin, check Media and re-upload the image. Then check the theme section if the image is set there.
How can I know when an image breaks without checking by hand?
Use a monitoring tool that loads your key pages on a schedule and alerts you on failures. FunnelGuard does this with a robot visitor and sends an alert with a screenshot and a likely cause.
Related issues
- PRF-138Broken image (404) on a funnel pageFix guide
- PRF-140Image hotlinked from another site that now blocks itFix guide
- PRF-141Image URL points to staging or localhostFix guide
- PRF-152Product images missing (placeholder image shown)Fix guide
- PRF-150Images with wrong aspect ratio (stretched/squashed)Fix guide
- PRF-151Blurry/low-resolution images on retina screensFix guide