There’s no need for the wp-content/themes
path – both themes sit in the same directory, so you can just traverse up one and then back down to child theme:
background-image: url(../child-theme-name/images/some-image.png);
Update: Regarding your answer to “where is the CSS file stored”, you inferred that the stylesheet resides in the child theme folder – in which case you are massively overcomplicating things and can just use (as @Rishabh suggested):
background-image: url(images/some-image.png);
Relative paths in a stylesheet are relative to the stylesheet itself – not the document, the parent theme, or anything else for that matter.
Related Posts:
- WordPress login page logo customization
- How to store media files in subdomain
- WordPress Child Theme Calling Images
- Remove ‘wp-content/themes/themename/’ from Image path
- change the $content_width
- How to configure sub-domain for images on Debian Apache VPS?
- Images give 404 after changing default domain
- Adding custom html/css/images to Theme
- Remove image border in twentyeleven theme [closed]
- How to change img src in home-made theme, using WordPress` live customizer?
- Relative path not working at all in WAMP local environment
- Transfered live site to new server and images are not showing
- Images in sub-pages fail to load
- Img src path from wp-admin
- remove or update add_image_size
- add_image_sizes ignoring crop sizes and using proportion
- Get attachment ID of author_meta image – Attachment Metadata
- Black and White thumbnails
- get_intermediate_image_sizes Get the Size Names but How Do I Get the Sizes?
- Alter image output in content
- How can I remove the image attachment ALT field?
- Download button for Featured Image in every post – automatically
- Change html structure of all img tags in WordPress
- Uploading images: ‘ø’ get replaced with ‘ø’
- Get a list of all image sizes that match aspect ratio of original one
- Insert image in comment reply
- Randomly add a ‘ul’ list of images
- Show featured image option not in screen options
- media_sideload_image with rewritten urls?
- How to set a contact forms total size limit
- Get thumbnail url of custom meta image?
- SVG Featured image not shown in twitter
- All Images on wordpress site broken
- WooCommerce-like featured gallery
- Multiple images in one attachment page
- How to keep WP from recompressing Full Size images
- How to use photo in multiple posts?
- Creating a thumbnail from an image already on the server?
- Alter the image, before save, of a particular image size
- Missing a temporary folder.error when image is uploaded in admin Set temporary Directory – WordPress 5.2.2
- Hero image cropped at different dimensions
- Locally Developing a wordpress website, cant get images to display?
- Is it ok to paste a WordPress Image URL into a post?
- How do I track down the origin of the alt text on a particular image?
- How to handle a background-size: cover image in WordPress?
- Empty alt/title form check in media library
- Problem Cropping Images From WP Customizer
- How To Get The File Extension Of Images Having Different Extensions In A Directory?
- How to add images to a post without inserting them into the content area of the post editor?
- Is it possible to reduce image filesize on the fly (when users enter my website)?
- Why WordPress strips scr string from img tag off?
- Random image loader
- insert image alongwith with custom data via a frontend form
- Create a link to full-sized image attachment?
- Get image path : image is upload but not attached
- What sense makes medium_large_size_h => 0?
- after migration, newly uploaded images won’t show up
- Emoticons not working on my site
- How to use getimagesize() of image upload?
- limit number of images shown from gallery
- Graphics and Formatting Not Loading in WordPress on IIS
- How to Automatically import external images to Upload
- Alter the image used for a user who has not uploaded a custom image yet
- Fullscreen Page Background without Plugin [closed]
- Allow a specific user role I have created to only upload one image to his media library
- Implementing a modal(lightbox) for all images in all post-gallery posts
- how to regenerate webp et-pb-portfolio-image
- How do I avoid color distortion of uploaded images?
- Where to put code that customizes API
- When upload a PNG a noise appears in the thumbnails
- How to auto add image caption from image alt?
- How to stop TinyMce from converting image url into ?
- How to automatically load an image inside the post, since it is present in uploads folder
- Generate links on all images in posts – is there a hook?
- Decide how Hero image appears on mobile
- Broken images/videos after migration – DIVI theme- works ok on Mac OS
- Get “Image CSS Class” value from the Advanced Options section
- After reinstalling wordpress images do not appear in posts?
- Can’t figure out how to get space around an image? [closed]
- Show images from TEXT section on PAGE wordpress
- Where to add my code to auto attach images to existing products
- Set WordPress to Create different images format later, not during upload
- If file exists with page slug name show image else nothing
- How might one programmatically set the link for all images in all posts?
- 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
- page displaying media caption shortcodes
- Display different Images depending on the current day
- How to add a credit line to a photo caption
- Uploading Images for a section
- Some images suddenly not appearing
- Paginate Gallery [closed]
- How do I add a nested conditional within an echo – to use a default image if there isn’t one in the post?
- WordPress: Preload next post images
- Image not showing in an archive page
- Set add_image_size() greater than content width in media box
- Remote Image (from URL) as Media Library element
- Theme using masonry layout script rendering overlaped images in Google Chrome [closed]
- Why is inline CSS added to images automatically? [closed]
- Images have dissapeared from media library and site