Don’t use a relative URL. If you look at the source you are probably trying to load the image from http://sitename.com/images/ when what you likely want is http://sitename.com/wp-content/themes/themename/images/. Assuming the image is in the theme directory in a folder that shares a directory with style.css, do this:
<img id="topL" src="https://wordpress.stackexchange.com/questions/78271/<?php echo get_stylesheet_directory_uri(); ?>/images/img01.png"/>
http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri
Related Posts:
- How to set twenty fourteen header image at 100% width?
- Display different header images based on current page
- How can I use cached images in an AJAX response?
- WordPress 4.1 header image problem
- How do I get my main image to stretch the full length of the screen?
- How to remove header images from displaying (not css or editing)?
- Logo is not being displayed in header (Twentytwelve)
- Placing a featured image into header
- Featured image not shown in header
- Responsive header image
- How can I change the header on the pages?
- Change header image size
- Adding custom html/css/images to Theme
- How to add an image below the header on homepage
- Put image onto header
- Changing logo image in header.php upon language detection
- How to get customable image header?
- WordPress Site Broken and it gives Headers Already sent error
- What’s the proper way to find and remove duplicate images from posts and the media library?
- get_post_gallery with Gutenberg
- Saving the pre-sanitized filename of an attachment as the Title or Caption
- Creating a rotating header /image slider using theme customization
- Add aditional class to get_avatar when showing image
- Double thumbnails?
- Alter media caption/description conflict in WordPress?
- No srcset for hard-cropped thumbnails
- Loop through child images of a parent for a Nivo Slider
- Rename attachments during upload
- alt, title tags not showing
- When displaying the featured image, is has_post_thumbnail() necessary?
- Uploading images to Media Library fails with Memory Exhausted
- Include captions
- Replacing image attributes (data-src) also applies to backend
- get_attachment_id() only get id of first attached image after post update
- What’s the proper way to use the get_image_tag filter?
- Populate a slideshow list of images from images in a wordpress page?
- Using Add_image_size when adding image in post
- Resizing image into thumbnail, small, medium and large options greyed out
- Add multiple images to author profile page
- Is there a plugin or simple way to add a multiple images metabox to a post?
- how to attach an image to a custom post type in wordpress using just code
- Show media url immediately after upload in media uploader
- Image URLs stopped working due to Permalinks?
- Is this post using WordPress Gallery?
- can you call the alt tag for an image dynamically?
- How to open default wp image editor screen dynamically?
- update_post_meta attachment_image_alt description for Gutenberg
- Add select input with pre defined classes to insert image screen?
- Is there a way to change all already uploaded images which are PNG and convert them to JPG?
- add media button is not working
- Undefined index: sui_image_caption in [closed]
- Auto delete attachments that are older than x days
- Image increasing kb on resize
- attach image from library to post with wp_insert_attachment
- 409 error (Conflict) when trying to insert an image into a post
- Exclude image titles from search results
- Gallery with thumbnail carousel
- Thumbnails generated by “add_image_size” are not removed when removing media
- WordPress 3.0 embedded images
- TImthumb not working for absolute path
- Correctly implementing the Facebook Like button
- Omit image captions from get_the_content()
- Store in media library image uploaded from url
- How to limit the number of images displayed in the media window?
- Is it possible to preserve original images in order to change image size later?
- Clickable image link sends people to wrong URL
- Get images attached to a specific page
- Need custom picture field for pages
- add_image_size function not working
- image resizing on post content without css and html tags
- Stop WordPress compressing images? – Quality is terrible
- How to add onclick event to widget image
- Use default image as var
- Using mysql to replace img src?
- wordpress add image size crop function not working in version 3.8
- Cache issues with images not showing up
- Specific Days, Specific image on Front Page
- How to change image’s author via a function when using GravityForms uploader? [closed]
- Changing The Default Header POST Title and Description text by category in wordpress
- Doing a bulk replace of images through back-end
- Serving Images from subdomain in wordpress
- How to change a theme’s footer image
- Can’t upload Images to WordPress – Error 500 Response
- Enlarge Featured WordPress Images
- WordPress 4.4.2 upload give error, can’t write is upper directory allowed to be written
- How to attach 1000’s of unattached images
- Unable to delete images in Media Library
- How to show only one image in homepage
- click on Gallery picture but pictures doesn’t appear
- How to Generate Custom Image Size in Uploads Folder?
- set specific dimension or minimum upload size [duplicate]
- Content around featured image
- Getting featured image of blog page rather than post image
- Upload button in metabox not working
- Add custom version to an image
- (Dynamically) Decrease the actual image size for downloads
- wordpress images not display [closed]
- How to add a link to media file for every image inserted in content?
- All WordPress Website Images Broken
- image doesn’t display when option on product page chosen