css – WordPress background image not displaying – grayed out in Chrome inspector

css – WordPress background image not displaying – grayed out in Chrome inspector

This is how it will work. As a result, it should be like this:

background-image: url(../assets/images/tie-dye_fade.jpg);

the complete body tag code should look like this:

body {
    background-image: url(../assets/images/tie-dye_fade.jpg);
    background-size: cover;
    font-family: Open Sans, sans-serif;
}

mostly like above background-image: url(../assets/images/tie-dye_fade.jpg); it will work if not remove that ../ so it will be work

body {
background-image: url(assets/images/tie-dye_fade.jpg);
background-size: cover;
font-family: Open Sans, sans-serif;}

if style sheet any css folder you have to use ../ else you have to use just like this assets/images/tie-dye_fade.jpg

css – WordPress background image not displaying – grayed out in Chrome inspector

Leave a Reply

Your email address will not be published.