You can define constant in theme function file as:
if( !defined(THEME_IMG_PATH)){
define( 'THEME_IMG_PATH', get_stylesheet_directory_uri() . '/site/images' );
}
and then you can use img tag as
<img src="https://wordpress.stackexchange.com/questions/252559/<?php echo THEME_IMG_PATH; ?>/footLogo.png" style="padding: 0px!important; color:white">
Related Posts:
- Upload multiple images in a custom metabox
- Displaying images with relative paths in the editor
- Default image for homepage when shared in social media
- Caption in Page adding unwanted 10px to width
- Speed of the slider images should be increased in wordpress
- How can I upload an image for background use using the Theme Editor in WordPress?
- Woocommerce featured image of page – not product
- Pull Random Attachments With Pagination
- Image URLs stopped working due to Permalinks?
- Hero image cropped at different dimensions
- WordPress Creates Unused (Unregistered) Image Sizes
- Random home page background images with caption text
- Why can’t I gain access to my homepage images?
- Is there a way to add a featured image to an image/file attachment page?
- Save media files (images) to database instead of the filesystem
- How to handle a lot of media files in the uploads folder? (+10.000)
- How to add an image below the header on homepage
- Gallery Images could not be shown
- Editing Featured Image Display When Creating Post
- how to display all images from their siblings/ from same parent?
- Featured Image not changing
- Media Library Issues
- image doesn’t display when option on product page chosen
- How do I disable responsive images in WP 4.4?
- Set default image sizes in WordPress to hard crop
- After Moving a Site to Another Domain, All Images Are Lost
- How to find attachment by it’s name?
- Modifying an uploaded image with ‘wp_get_image_editor’ and ‘wp_handle_upload_prefilter’
- How do I delete all generated images from my server except those currently used in posts
- Change the output for [gallery] shortcode
- Apply image width to tag
- Wrong domain in uploads folder
- How can i alter the amount of different images sizes being stored?
- How to force WordPress to add new images at the beginning of the gallery?
- Why would image paths in wordpress suddenly change?
- Re-process Images
- Show prev and next post links for parent post of current image in attachment page?
- Why is wordpress searching for @2x images?
- How to show category images (from plugin) on a regular page (page-example.php)?
- Check if page/post has any anchors that link to an image jpg/gif/png
- Image File Names
- Images in upload folder with hexadecimal names
- How to check if user is uploading/setting an image as a featured image?
- JavaScript and images files are not recognized
- How to remove Geo Tagging on image uploads, but not other EXIF data?
- How to change only the home page / front page url on wordpress
- Trying to create a mouseover effect in html using Gutenberg editor
- How to output images as figure/figcaption
- Make Images appear in the same order as in media browser using get children?
- wordpress get gallery images title
- How to wrap normal image tag with figure HTML5 element
- How to find images in lazyload to set alt attribute?
- having issue while uploading An error occured in the upload. Please try again later
- How to change image atributes right before an image to be saved?
- Is it possible to put images as url in document [closed]
- Creating ‘required’ fields in the ‘add media’ window
- How to replace images?
- Add custom text in the media library image meta area
- fetch images and videos
- Specific image size is being generated without being registered
- Should I not compress my jpeg files before uploading to avoid double compression?
- Generating a certain sized thumbnail on the fly?
- How to display title of attached image in post?
- Getting thumbnail of uploaded image
- Display image for first sticky post only
- Get all image IDs from the Media Library
- Allow users to contribute images to a post
- Can’t add image to site via php
- Cleaning a filename after image sideloading a url that contains `%20`
- Save Image in wp_options-Table
- Image upload error?
- Is it possible to get feature image url (full-size) from an image url of smaller size?
- Image not showing using a custom function and get_post_meta
- How to add “alt” attribute for image during upload at WP front-end?
- Get Original Dimension Featured Image on the homepage
- WordPress keeps resizing my 947×947 image down to 500×500 (full-size option)
- Excluding post thumbnail from the attachment.php when using wordpress gallery
- Featured Image Thumbnail size on Twenty Ten Archive Page
- Widget Style – Icon Type
- WordPress Problems
- WordPress PHP custom function is causing 500 Internal Server Error Connection Timeout
- Post-processing of the image failed
- Get post thumbnail in specific size
- Text not wrapping properly around image in WordPress Visual Editor [closed]
- Broken images in media library
- Resize images to match CSS
- Featured image appears in header
- Preventing the image-post problem from ahead (edit: without redirects)
- How to put images into theme from server folder (not from media library)
- How can I stop WP Image Editor upscaling from looking so pixellated?
- Declare global variable that can be used on other function
- How to show images uncropped after uploading?
- add_image_size() width not actually working
- How to replace all images within exported xml files to demo.jpg?
- Black and White Thumbnail in WordPress Gallery
- Saving a post, content filtering and user levels
- How to extract specific image meta for all images?
- *box for images displayed as a post’s [gallery] [duplicate]
- Are image addresses security relevant?
- While doing a bulk upload the Media Images are showing blank?