Site-wide Background – revisited
-
Previously, I couldn’t get the Background img wouldn’t show on any page. I did more tweaking and now it works on the main (index) page but no others. Is there a way to MAKE the CSS propagate to ALL of the pages on the site?
I’ve tried the following:
/* START OF Change Customizr Background to Texture or Image */
body {
/* Adjust the Image location ‘wp-content/uploads/NAMEOFFILE.png’ */
background: url(wp-content/uploads/2019/12/bg.png) repeat 0 0 ;
}
/* Set the color (#FAFAFA) of the internal body */
#main-wrapper {
background-color: #FAFAFA;
}
/* END OF Change Customizr Background to Texture or Image */changing the path to my path.
I’ve tried:
body{
background: url(‘wp-content/uploads/2019/12/bg.png’) repeat fixed 0 0 #FAFAFA !important ;
}and I’ve tried:
html {
background: url(wp-content/uploads/2019/12/bg.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}ALL of these have been tried as both custom CSS in the editor AND as a child-theme. I get no image. Just the same white background.
I tried putting the background image in the main wordpress folder and adjusting the path. Still no image.Any input would be greatly appreciated
- The topic ‘Site-wide Background – revisited’ is closed to new replies.