home page background different to other pages

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

home page background different to other pages

Postby productsteps » 23 Apr 2012, 20:38

Hi all,
I am trying to improve my site and doing a little css work.
I am however struggling trying to gt a different header image on my home page than the rest of the site.

I have tried the below but still doesnt work?

.page-id-228 #body.custom-background{
background-color: white;
background-image: url('http://www.engineeringsteps.com/wp-content/uploads/2012/04/background-home.png');
background-repeat: repeat-x;
background-position: top left;
background-attachment: scroll;
}

I would appreciate any suggestions as I have tried a few knocking about on this forum.

Thanks in advance

http://www.engineeringsteps.com
productsteps
 
Posts: 6
Joined: 13 Mar 2012, 18:50

Re: home page background different to other pages

Postby sayontan » 23 Apr 2012, 21:39

Do you want a custom background or a custom header? Your title says "background", your post says "header image". If you can clarify we will be able to help you.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: home page background different to other pages

Postby productsteps » 23 Apr 2012, 21:43

Sorry, its a custom background. I dont want to change my header just the background behind it.
Thanks for reviewing, love your theme
productsteps
 
Posts: 6
Joined: 13 Mar 2012, 18:50

Re: home page background different to other pages

Postby sayontan » 23 Apr 2012, 21:54

Instead of ".page-id-228 #body.custom-background" use ".page-id-228 body.custom-background".
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: home page background different to other pages

Postby productsteps » 23 Apr 2012, 22:12

thanks, I tried it and still didnt seem to work

I now have:

page-id-228 body.custom-background {
background-color: white;
background-image: url(http://www.engineeringsteps.com/wp-cont ... d-home.png);
background-repeat: repeat-x;
background-position: top left;
background-attachment: scroll;
}

it doesnt seem to even change the css code when I check the css rules

any more ideas would be appreciated

thanks
productsteps
 
Posts: 6
Joined: 13 Mar 2012, 18:50

Re: home page background different to other pages

Postby drake » 23 Apr 2012, 22:34

Try to add at Suffusion Options -> Backend -> Custom Includes -> Custom Styles just:

Code: Select all
.page-id-228 body {
background-color: white;
background-image: url('http://www.engineeringsteps.com/wp-content/uploads/2012/04/background-home.png');
background-repeat: repeat-x;
background-position: top left;
background-attachment: scroll;
}


Background is just a property of body, don't need a separate class for it.
drake
 
Posts: 3778
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: home page background different to other pages

Postby sayontan » 23 Apr 2012, 22:50

Actually it should be body.page-id-228.custom-background
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: home page background different to other pages

Postby hugefan » 24 Apr 2012, 16:06

Brilliant! Suffusion is truly the King of WordPress Themes!

I came to this forum to learn how to have a different background color for each page, and sure enough, here's the answer - Thank you, Sayontan! I'm passing the hat this week to buy you several cups of coffee!
Suffusion user in more than a dozen websites, and counting...
User avatar
hugefan
 
Posts: 3
Joined: 24 Apr 2012, 10:58


Return to Support Requests

Who is online

Users browsing this forum: Google [Bot] and 1 guest