Fix missing images on your website

If you added or updated an image in your website, and you can't see it when you view your page, or the image appears broken, try these troubleshooting ideas.

Publish your site

If you add an image — or any new content — you won't see it on your website online until you publish. Publishing makes your latest website content available on the Internet.

To publish with Yahoo Site Solution or Yahoo SiteBuilder, just click Publish in the toolbar. Learn how to publish with other tools.

Refresh the page

To help web pages appear more quickly when viewed again, most web browsers will store, or cache, the files that are automatically requested by visiting a website. Storing those files lets your browser more quickly reload pages from the cache rather than transferring information across the Web over and over.

If you recently replaced an image, and you can't see the new one on your web page, you may need to prompt your browser to remove the old image from its cache. Try refreshing your page by clicking on the web page, then holding down Ctrl+F5 on your PC keyboard (Option+R on a Mac).

Clear the cache

If the new image still doesn't show after refreshing the page this way, try manually clearing the browser's cache. Learn how to clear your browser's cookies and cache.

Upload your image again

To display your images, your site must be able to find your images among your website files. If you use Yahoo Site Solution to build your site, we'll add those images to your Web Hosting account automatically. If you can see the images when you edit your site, you can be sure they've been added to your account.

If you used SiteBuilder or a third-party tool to create your page, you'll have to upload your images to Yahoo's servers so they can be displayed. SiteBuilder will upload your images automatically whenever you publish your site.

If you used another tool, you can use our Easy Upload utility or an FTP program to upload the images into your File Manager. If you've already uploaded the file but can't see it when you view your page, or the image appears broken, try uploading it again; the file could've been damaged during the upload process.

Check the image path

If you moved your image from one folder to another in a site you built with SiteBuilder or another advanced tool, the browser may be unable to find the image, so the image will appear broken.

Check the expected path of a broken image by right-clicking on the broken image icon in your browser and selecting "View Image." In the address bar of your browser, you'll see the address of your image, which will look something like this:

http://www.widgetdesigns.com/subdirectory1/subdirectory2/my_image.jpg

Now return to your site building tool and look in the folder(s) whose names appear after your domain name in the image address. In our example above, we'd look in the folder subdirectory1, then subdirectory2. If the file called my_image.jpg isn't saved in this folder, the browser won't be able to display the image. To fix the problem, move the image to the correct folder (subdirectory2) or upload the image again to that location (see above), or edit the HTML so that it calls for the image in its current location.

Check your HTML

To display the uploaded image, your file must include the necessary HTML code. If you're writing your own code (rather than using one of our easy-to-use tools), be sure it looks like this (replace ".jpg" with .gif, .png, or .bmp, depending on the file type):


If your image is in a subdirectory, use the following code (replace "subdirectory" with the name of your subdirectory):

or

You can also write an image reference using the complete image URL:

Get help creating this code.

Be sure the name of the image file in your code exactly matches the name of your file, using the correct extension (.jpg, .gif, .png, or .bmp), and that casing (upper/lower case) matches. Any inconsistencies in your file name will cause the image not to display when you open the page in a browser (the browser will display a broken image icon).

Check the file type

If your image still won't display, check the file type. All image files should be saved as a JPEG, GIF, PNG, or BMP file, which end with .jpg, .gif, .png, or .bmp.

Please note that simply renaming the file won't change the file type (and could, in fact, corrupt it). You need to use an image editing program to convert the file into a JPEG, GIF, PNG, or BMP file before uploading it to your File Manager.

  • Was this article helpful?

  • Yes
  • No

Still need help?