BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Body Background for Home Page
- This topic has 5 replies, 2 contibutors, and was last updated 8 years, 9 months ago by Anonymous.
Question
February 1, 2016 at 4:30 pm #57863@allisonnanceI want to have a background image only on the home page behind my content. I have tried the following custom css but it doesn’t work.
body .page-id-7 {
background-image:url(“http://act1.randallreilly.com/wp-content/uploads/sites/2/2016/02/large-road-home-background.png”!important;)
}Answers
February 2, 2016 at 11:32 am #57928@
AnonymousHi @allisonnance, Please provide me the homepage url so I can provide you exact css to set background on home page.
Regards
February 2, 2016 at 11:35 am #57929@allisonnanceact1.randallreilly.com
Right now, I just have it as a background in a page builder row but it doesn’t align properly. I would prefer it to be a background image on the page.
Also, what is the optimal size for a page background image?
February 2, 2016 at 12:12 pm #57932@
AnonymousHi @allisonnance, You have set the boxed layout so the background image will be applied only on boxed width:
.boxed .page-full-width { background: url('http://act1.randallreilly.com/wp-content/uploads/sites/2/2016/02/road-image.png') !important; }
Regards
February 2, 2016 at 12:50 pm #57938@allisonnanceThis applies the background to all the pages. I just want it on the homepage. I tried adding the page id but that didn’t work.
February 3, 2016 at 12:59 am #57963@
AnonymousHi @allisonnance, The css below will implement the background image behind your content but only in homepage. Just add following css in your child theme.
.home-page .page-full-width { background: url('http://act1.randallreilly.com/wp-content/uploads/sites/2/2016/02/road-image.png') !important; }
Regards
- The question ‘Body Background for Home Page’ is closed to new replies.