Anyrecommendations/ suggestions on how to make header/ footer color transparent?
seems to be two pages css and dark color theme and cannot for the life of me figure it out.
I think you’re probably stuck because you’ve applied the background image to the wrong class.
I explained a bit about this mix up near the end of this post, and the actual ID/class that the background image should have been applied to.
/**
* to apply these to light version,
* just remove .colors-dark class
* from the codes below
*/
/* make entire page has no background */
body.colors-dark,
.colors-dark .site-content-contain {
background: none;
}
/* make main header section has no background */
.colors-dark .site-header {
background: none;
}
/* make main footer has no background */
.colors-dark .site-footer {
background: none;
}
And in case you want the main nav to have no background as well, add this:
/* make main-nav has no background */
.colors-dark .navigation-top,
.colors-dark .main-navigation ul {
background: none;
}
You’ll probably notice that the header and footer are now showing a white color instead of the image.
That’s because the image is applied to the .site-content
class; that’s the wrong class if you want the background image to show on the entire page.
You need to apply your background image to either the #page
ID or .site
class.
/* remove background from .site-content */
.site-content {
background: none;
}
/* add image background to page */
#page {
background-image: url("/wp-content/uploads/2017/01/background.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
-
This reply was modified 8 years, 1 month ago by
ThePixelMe. Reason: point clarification
-
This reply was modified 8 years, 1 month ago by
ThePixelMe. Reason: added light-theme comment and some clarification
-
This reply was modified 8 years, 1 month ago by
ThePixelMe. Reason: fix spelling mistakes