If images on your Hostinger website aren’t displaying correctly, it can affect your site’s appearance and user experience. This guide provides clear, step-by-step instructions to troubleshoot and fix image display issues, ensuring your website looks professional and functions smoothly. Before starting, ensure you have access to your Hostinger account, your website files, and an internet browser.
What You’ll Need
- Your Hostinger account login credentials
- Access to the File Manager or FTP client
- Basic knowledge of HTML and file structure (optional but helpful)
Step-by-Step
- Confirm the Image Paths Are Correct
- Open your website in a browser and right-click on a broken image, then select ‘Open image in new tab’ or ‘Inspect’.
- Check the URL or file path in the image source (
src) attribute. Ensure it points to the correct location where the image is stored. - If the path is incorrect or broken, note the correct location for editing.
- Verify Image Files Are Uploaded Correctly
- Log in to your Hostinger control panel and open the File Manager.
- Navigate to the folder where your images are stored, typically within
public_htmlor a subdirectory. - Ensure the images are present and accessible. If missing, upload the images again.
- Check and Correct Image URLs in Your Code
- Access your website files via File Manager or an FTP client.
- Open the HTML, PHP, or CMS template files where images are embedded.
- Ensure the
srcattribute correctly points to the image’s location. Use relative paths (e.g.,images/photo.jpg) or absolute paths (e.g.,/images/photo.jpg) as needed. - Save changes and refresh your website to see if images load now.
- Check File Permissions
- In File Manager, right-click the image file and select ‘Permissions’.
- Ensure the permissions are set to at least
644(readable by everyone). - If permissions are too restrictive (like
600), change them to644and save.
- Clear Browser Cache and CDN Cache
- Sometimes, cached versions of pages prevent new images from appearing.
- Clear your browser cache or try opening your site in incognito mode.
- If you’re using a CDN (Content Delivery Network), clear its cache from your Hostinger dashboard or CDN provider settings.
- Test Your Website
- Refresh your website multiple times or try different browsers and devices.
- Check if the images now load correctly.
Common Mistakes
- Using incorrect file paths or typos in the image URL
- Uploading images to the wrong directory
- Not setting proper file permissions
- Forgetting to clear cache after making changes
- Using unsupported image formats or corrupted files
Tips
- Always double-check the image URL syntax and path correctness
- Optimize images for web to reduce load times and prevent display issues
- Use consistent folder structures for easier management
- Back up your website files before making major changes
Troubleshooting
If your images still don’t display after following the steps above, consider these troubleshooting tips:
- Check for Broken Links: Use online tools or browser extensions to scan your site for broken links or missing images.
- Verify Image Format Compatibility: Ensure your images are in supported formats like JPEG, PNG, or GIF. Avoid unsupported formats.
- Inspect Browser Console Errors: Open your browser’s developer tools (F12 or right-click > Inspect) and check the Console tab for errors related to images.
- Disable Plugins or Scripts: If you’re using CMS platforms like WordPress, temporarily disable plugins to rule out conflicts.
- Contact Hostinger Support: If you suspect server issues or permission problems beyond your control, reach out to Hostinger support for assistance.
Frequently Asked Questions
Why are my images showing as broken links?
This usually means the image path is incorrect, the image file is missing, or permissions prevent access. Double-check the URL and file location.
How do I change the image path in my website?
Access your website files via File Manager or FTP, locate the HTML or template files, and update the src attribute with the correct relative or absolute path.
Can incorrect permissions cause images not to display?
Yes, if image files are not readable (permissions lower than 644), browsers cannot load them. Set permissions to at least 644.
What formats are best for website images?
JPEG for photos, PNG for images needing transparency, and GIF for simple animations are recommended for optimal compatibility and performance.
How do I clear cache to see image updates?
Clear your browser cache through settings or use incognito mode. If using a CDN, clear its cache via your Hostinger control panel or CDN settings.
What if my images still don’t load after all these steps?
Check for server issues, ensure your image URLs are correct, verify file permissions, and consider reaching out to Hostinger support for further help.