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
- Set default image sizes in WordPress to hard crop
- Remove images (files) that were generated when using add_image_size()
- “There has been an error cropping your image” when cropping image
- Apply image width to tag
- Excludes posts that don’t have attachments in the_content()
- Remove duplicate images from media library.
- WordPress Image Editor doesn’t update thumbs specified with `add_image_size()`
- How can you upload an image from within a settings page?
- Get an image from url in front end submission form
- Show prev and next post links for parent post of current image in attachment page?
- could not upload image in media library
- 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
- How to check if user is uploading/setting an image as a featured image?
- Retrieving an alt tag from a custom field
- Exclude featured image from gallery in wp-admin
- Trying to create a mouseover effect in html using Gutenberg editor
- wordpress get gallery images title
- How to fix “.webp” being auto-added to the end of image urls
- Customizing the attachement page to show rest of all images in a gallery from post
- How to change image atributes right before an image to be saved?
- Is it possible to change ‘Link to’ in all images in all articles?
- Is it possible to put images as url in document [closed]
- Creating ‘required’ fields in the ‘add media’ window
- Importing images results to wrong folder structure
- WP keeps looking up post thumbnail on https even though wp-config says http
- Upload image without media-upload [duplicate]
- Tinymce and uploading local pictures
- Time Based change of image
- WordPress shows my picture in admin bar
- Using jQuery to automatically add class only to gif images in WordPress database [closed]
- how to get image full path from WP_Post Object?
- Featured Image problem with resizing
- WordPress Image Scaling Quality
- Create a post from every image in my media gallery
- Featured Image If Else Condition
- Not seeing text alignment option in Image block
- wp_get_attachment_url images in wrong order [closed]
- Parent page shows no child content
- Migrated site – Images have 404 error
- Show (print) featured image all dimensions (height, width)
- Speed Up Website With High Resolution Images
- Removing Images from a WordPress Post
- How come the images arent loading properly?
- How to use the thumbnail size with catch_that_image
- Random Image Script Working but Want to Avoid Duplicates
- Limit the amount of main pages
- HTML Img with data:image src gets sanitized in admin?
- Can’t find image to remove
- Not able to retrieve image id from sibling site within a switch_to_blog
- How to display a warning when an uploaded image is too small?
- How to link image in WordPress – Elementor when certain element does not offer that option?
- Large uploaded images not resizing?
- How can i place featured image after h2
- How to generate alt attributes with php / filters?
- Custom image size not displaying with wp_get_attachment_image()
- unsharp thumbnails after uploading image
- How to delete original image file after upload and resize
- WordPress After migration some images src is empty
- Access html element in media modal with jQuery
- How can I add “alt” tag to element?
- How to make image uploads default to full size?
- Recovered WordPress installation (on localhost) links broken and images not showing
- Image is missing on site homepage
- Media sizes do not appear
- How to make Facebook share the featuterd image from url on WordPress
- Changing current post image uls with a function
- How to watermark wordpress images from wp-content/uploads folder with htaccess and php?
- How to display every pictures from all the posts on one page?
- How to add multiple images in a page
- Retrieving Image Storage path
- pagination does not work with query_posts. Help! [duplicate]
- Define Folder to save Images
- Specify what to do for a specific image number of the post
- adding images to wordpress pagination?
- Custom filename when pasting an image from clipboard
- How do you change all images dimensions to have the same size?
- Delete all thumbnails & regenerate them?
- Gutenberg block HTML image rendering override