What if you use:
<div class="fill" style="background-image: url(<?php
echo get_stylesheet_directory_uri();?>/img/image01.png);"></div>
You need to tell WordPress in “a WordPress-way” where to find the image…
Look in codex at get_stylesheet_directory_uri().
Related Posts:
- Layout shop page: resize images and columns
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Redirect to another page using contact form 7? [closed]
- How to limit image size for the entire website ? But without editing the post (css/plugin?!)
- Images under 1MB are not being compressed
- Skewed / slanted button within elementor [closed]
- Is there any known plugins that would replace WordPress classes in editor with their Bootstrap 4 equivalent?
- Implementing Scrollable Images
- Display alt text as tool tip on page
- How to Add a Website Background Image to One Page?
- How can I use WordPress functions in my stylesheet?
- how to get path to images in the uploads folder to be used in a plugin
- How can I dequeue a Plugin Stylesheet?
- Display (and manage) webcam images?
- Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
- Override CSS settings of plugins
- How do I change the description of the same image which is to be found in multiple instances?
- Best way to inject css into admin_head in plugins?
- How to extract images of post and pages excluding header and logo image in wordpress?
- Generated Images sizes do not match Media Settings Image Size
- Converting a simple plugin to be placed inside of functions.php
- How to change Thumbnail size of next Gen Gallery plugin?
- wp_enqueue_style specifics for overwriting plugin styles
- How do I create a full-bleed background image on text mouseover? [closed]
- Is it possible to insert images directly from the server?
- How to add css class to a specific set of images?
- How do I make images clickable so as to enlarge them using lightbox?
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- Adding Attachment Display Settings in custom media frame
- Advanced Custom Fields
- Find unused images?
- Add stylesheets and js to template files when shortcode is used
- Image gallery plugin [closed]
- Inserting HTML tag with ACF into shortcode
- Is there an earlier hook than login_head or login_enqueue_scripts?
- How can I implement an Add to Collection function on my Image Gallery to be downloaded later?
- How can I restrict image upload dimensions for non-admin WordPress users?
- Trouble with plugin styles in admin area of WordPress
- How to create an input field, and base the output on spreadsheet data? [closed]
- Add padding while generating thumbnail
- Can we have an ‘Update metadata’ button in Image Gallery for all image instances?
- Image Manager Plugin [closed]
- Slider/text combination plugin
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Adding Static Image to WooCommerce Content-Single-Product template
- How do I get a post author’s image/avatar via RSS from another blog?
- Hide a Menu Item on Login
- Basics of changing plugin output
- Minimizing scripts & css files that plugins add
- plugin dev – minimum base css specificity?
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- Historical customisations won’t go away [closed]
- How to get images using taxonomy ( WP Media Folder)
- adding Adsense’s In-Article Ads between images of blog post
- change or add css to theme from plugin
- Add logo to admin menu in my plugin
- I would like to remove date display on photo preview
- At a Loss on over Page Peel Plugin Customization [closed]
- How do I link an image in my plugin so it displays on WordPress?
- Add_image_size not generating correct size
- Is there a way to insert multiple images into a post at the same time without using a gallery?
- Looking for a photo management solution
- I’m having several WP issues, especially with missing images
- Button and Countdown overlapping mobile menu
- Can export gallery but can’t import it Wp all import
- Want to create custom design of progress indicator in wpforms
- Bulk Image Resize for Media Library, but for ENLARGING instead of Shrinking
- Enlarge an image slider when click
- inserting custom css, html and js into the current page as a popup window
- WordPress built-in compression of images? How well does it compare to Photoshop or Shortpixel?
- How to remove Unused CSS From a WordPress Theme?
- Overriding inline !important CSS with Javscript code snippet with media query
- How get horizontal div instead vertical CSS
- Changing the CSS with a plugin
- what functions to use to resize images and create DB metadata for them after/during upload?
- WordPress create thumbnails on demand
- Uncaught TypeError: Cannot read property ‘cycle’ of undefined
- Uploading images to custom table
- WordPress custom blockquote with black background & white text?
- Edit the stylesheet of a child theme
- How do I override WordPress plugin css [closed]
- WP Plugin CSS not being applied to page
- Customize CSS for “Swipebox ” lightbox
- Does WordPress have a way of changing the ‘Natural’ size of uploaded images?
- Using a full-width hero image that can be changed in the dashboard by a user
- how to add custom css at top above all css file for specific url
- Best use adding user generated JS/CSS to a theme with a plugin
- Images not showing on homepage after migration [duplicate]
- how to open image gallery in a post/page?
- Retrieve post thumbnails
- How to make plugin work in each template in wordpress
- How to activate/deactivate menu tab and keep the same id?
- MultiPostThumbnails and media queries
- How to display a sitmap horizontally? [closed]
- how to add “alt” for all image in wordpress
- Woocommerce resize existing product images
- Want to show pop up image on home page every time when i refresh it [closed]
- Option value not getting updated until page refresh in WordPress
- How do i display the number of images on the “post screen”
- Dropdown menu only appearing when logged in