-
AuthorPosts
-
arthurjohnston Friend
arthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
March 1, 2016 at 4:29 am #892719Within the "Home" Menu I am using "home" as a "page class" and within another menu I am using "forum" as a page class.
When using the following in custom.css. It displays properly on the Home Page.
.home body { background-image: url("/images/body_bg.jpg") !important; background-repeat:repeat; }Although, when using the following it does not display upon either page:
.home .logo body { background-image: url("/images/body_bg.jpg") !important; background-repeat:repeat; }
Any suggestions how I can have the background appear on both pages?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 1, 2016 at 4:52 am #892728Although, when using the following it does not display upon either page:
.home .logo body { background-image: url("/images/body_bg.jpg") !important; background-repeat:repeat; }
As there is no class in .logo home it does not work . You should apply nly
body { background-image: url("/images/body_bg.jpg") !important; background-repeat:repeat; }
to apply bg image on all other pages . Home class is only for the homepage .arthurjohnston Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
March 1, 2016 at 6:40 am #892744My apologies, I should have typed: .home .forum body {….}
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 1, 2016 at 7:25 am #892755Do u still need help in this case ?
arthurjohnston Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
March 1, 2016 at 7:33 am #892759Yes, please. I wish to confine the background to only two (2) pages.
Thank you,
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 1, 2016 at 7:58 am #892764Hi
Use this code in custom.css file.itemid-1200 body { background-image: url("/images/body_bg.jpg") !important; background-repeat:repeat; }
change the id 1200 with the menu item id where u want to apply the bg image .
1 user says Thank You to Pankaj Sharma for this useful post
arthurjohnston Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
March 2, 2016 at 3:30 am #893255Thank you! Solved the issue.
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by arthurjohnston 8 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum