Hello,
I am trying to set up a background pattern for the whole website + keep white background for blog posts. I have managed to do it partially but there are few pages that still don’t catch the bg pattern (all blog posts and portfolio pages). For example here:
http://www.varrojoanna.com/start-project/
http://www.varrojoanna.com/weekly-colours-inspiration-summer/
Is there a better way to apply custom css to A) Have bg pattern B keep white bg for blog posts
Thank you,
Code I have tried:
<!– BACKGROUND PATTERN –>
#main-container {
background-image: url(http://www.varrojoanna.com/wp-content/uploads/2016/05/website-bg-pattern-V2.jpg)!important;
background-repeat: repeat;
}
#page-wrap {
background-image: url(http://www.varrojoanna.com/wp-content/uploads/2016/05/website-bg-pattern-V2.jpg);
background-repeat: repeat;
}
#header {
background: #fff url(http://www.varrojoanna.com/wp-content/uploads/2016/05/website-bg-pattern-V2.jpg) repeat top center;
}
#header-section:before, #header .is-sticky .sticky-header, #header-section .is-sticky #main-nav.sticky-header, #header-section.header-6 .is-sticky #header.sticky-header, .ajax-search-wrap {
background: #fff url(http://www.varrojoanna.com/wp-content/uploads/2016/05/website-bg-pattern-V2.jpg) repeat top center;
}
#footer {
background: #fff url(http://www.varrojoanna.com/wp-content/uploads/2016/05/website-bg-pattern-V2.jpg) repeat top center;
}
#copyright {
background: #fff url(http://www.varrojoanna.com/wp-content/uploads/2016/05/website-bg-pattern-V2.jpg) repeat top center;
}
<!– BLOG POST NO BG PATTERN –>
.single-post #main-container {
background:#fff !important;
}