You could try the following if you have a child theme and trying to reference your images from that file location, onto your custom .php files…
<img src="https://wordpress.stackexchange.com/questions/226211/<?php echo get_stylesheet_directory_uri(); ?>/assets/images/your-custom-image.jpg" />
Just make sure in your child theme location, you really have a child folder structure of…
assets -> images
Related Posts:
- Problem with loading images from child theme CSS file with relevant path
- change the $content_width
- Adding custom html/css/images to Theme
- Remove image border in twentyeleven theme [closed]
- get the attachement url for the medium sized image
- Each custom image size in custom upload directory?
- How to automatically add rounded corners to thumbnails?
- Is there a simple way to just insert a link to an image (without inserting an image)?
- Watermarking Images with WordPress with WP_Image_Editor
- Get attachment/image info in JS
- Auto-modifying original [full size] images
- How to limit number of images being printer out in “Set Featured Image” pop up?
- Black and White thumbnails
- Crop image to horizontal or vertical by code based on image size
- Pasting images removes class attribute
- How can I make all gallery images to open in a new window?
- Open the attachment details modal
- Crop image without scaling or resizing with add_image_size()
- Download button for Featured Image in every post – automatically
- How to make programmatic image upload generate thumbnail and sizes?
- Editing built in Gallery shortcode to filter by categories
- Image with description side by side
- Random popup image per user with no repeat
- Speed of the slider images should be increased in wordpress
- Modifying protexted image sizes: use “add_image_size()” or “update_option()”?
- Get full image array
- attach unattached featured images to respective posts
- Display number of images actually posted
- Confusion about arguments sent to add_image_size
- Is it possible to pull and display a single landscape oriented image
- Remove image classes from post thumbnail output
- Different image sizes for home and post pages
- Show full image thumbnail
- upload featured image in custom post type from frontend
- Make medium_large images available to insert into post
- Removing height and width from images with a caption
- Images not showing on blog
- Why does Google Image Search still display my images?
- Dynamic tagged image galleries
- Image auto resize
- WP fails to upload files to media library, /wp-admin/async-upload.php 403 forbidden
- Add a background image for Custom Post Type archives page
- Empty alt/title form check in media library
- Images stopped loadding after adding SSl
- GoDaddy Number of Image Files Per Directory Exceeded
- Post and featured image have the same name, why is the attachment (image) is showing and not the post?
- add_image_size wont work after get_intermediate_image_sizes
- Ways to show multiple, separate galleries per post?
- Stop WordPress from cropping images using url parameters
- How to get the image-URL from Media-Upload in a post?
- How to get the Gallery form/section just like in Gutenberg block?
- One of my image sizes isn’t showing up in srcset
- Conflict with single and double quotes
- Featured Image Cetegory Not Shown In WordPress
- How do I get a smaller size of an avatar image
- download link for uploaded images for wordpress
- Force default OG:Image – Yoast SEO [closed]
- after migration, newly uploaded images won’t show up
- Why do I have blury images in WordPress
- Disable save as image on smartphones using all browsers ( chrome, firefox, ie, cm, opera )
- How to get the title of the random images from media library?
- How To Display Author Photo In WordPress without any plugin?
- Alter the image used for a user who has not uploaded a custom image yet
- Allow users to upload multiple images to their profile
- how to change format jpg to webp?
- User uploads image as “Featured Image” but WordPress resizes it?
- Implementing a modal(lightbox) for all images in all post-gallery posts
- Hide Title tag on image Hover
- How to increase media image scale limit?
- How do I avoid color distortion of uploaded images?
- Where to put code that customizes API
- Force WordPress to always generate a thumbnail for original image
- How to get the best resolution of image from srcset
- How to auto add image caption from image alt?
- File upload size limit in wordpress and php.ini limit
- How to add php to theme to show alt attributes
- Display Title/Description/Caption of custom images on homepage
- Blank image thumbnails in media library
- Getting extra image links in code with wp_get_attachment_image
- featured image in custom poste type (backend)
- Get “Image CSS Class” value from the Advanced Options section
- After reinstalling wordpress images do not appear in posts?
- Dinamically modifying attributes of images on posts
- Run command to optimize images after they get uploaded to WordPress
- How decrease the size of images which are present in uploads folder?
- Large size is not honoured when inserting image
- Issue uploading images
- How can I use images that are on the server locally?
- Image filter works on attachement pages but not posts. I can’t get the image ID
- The most of the images don’t appear, although URLs are correct
- Get images uploaded to this post in popup on editor screen
- Remove “align” attribute on images
- WordPress Images | How to get the cropped image?
- How do I add a nested conditional within an echo – to use a default image if there isn’t one in the post?
- How do I change a Themes Header Image?
- Some images 404
- Blurry Images WordPress 5.8.1
- How can I put pictures next to each other and how can I add a location? [closed]
- How to show file size of featured image? [duplicate]
- Could a very long article slow down all website and wpadmin?