Sitewide background image
-
I’ve been racking my brain trying to get custom CSS to work. I’m trying to get the same background image to show on ANY pages:
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 ‘Sitewide background image’ is closed to new replies.