Different background images per page

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?"

Different background images per page

Postby meltdowncomics » 09 May 2012, 17:14

Hello, i'm trying to do a different background image on each page. I read comments and instructions but i'm lost where i would do that. This would be a page backgrounds not body backgrounds. Once set i can just make the body background transparent and just show the page background. Here's the code I found,

Page-id-XXX #content {
background-image: url(yourimage.jpg);
background-repeat: no-repeat;
background-position: right;

but where do i insert that?

thanks for any help you can give me.

Francisco
http://www.meltcomics.com
meltdowncomics
 
Posts: 10
Joined: 22 Feb 2012, 15:21
Location: Los Angeles, CA

Re: Different background images per page

Postby drake » 09 May 2012, 19:36

All custom CSS definitions can be added at Suffusion Options (main menu on the left side) -> Backend (horizontal upper menu) -> Custom Includes (can see the menu on the left) -> Custom Styles (the big edit area which jump on you)
In the codes used don't forget the closing curly bracket, otherwise the code will newer work and will break other things too. Also, use the absolute path to the images, starting with http://yoursite/....). The complete code need to be:
Code: Select all
.page-id-XXX #content {
background-image: url(http://yoursite/path/yourimage.jpg);
background-repeat: no-repeat;
background-position: right;
}
drake
 
Posts: 3783
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Different background images per page

Postby meltdowncomics » 11 May 2012, 20:51

Thank you soooo much, i will look into that.
:P
meltdowncomics
 
Posts: 10
Joined: 22 Feb 2012, 15:21
Location: Los Angeles, CA

Re: Different background images per page

Postby watsontcbc » 24 Sep 2012, 16:19

I have a very similar problem and this support string is a great help. But I have only five pages out of the total of 15 or so that need a special background. All the other pages need a black page color (which is the current global setting). Here is the one page I have bee working on so far:
http://www.watcinema.com/directing/narr ... bs-journey
Can you tell me how to set the background color to "transparent" only for specific pages such as this one?

Thanks in advance for you help with this!
watsontcbc
 
Posts: 2
Joined: 24 Sep 2012, 14:19

Re: Different background images per page

Postby drake » 24 Sep 2012, 22:53

The code above is applicable to specific, different pages. You need to replace "XXX" with the id of page you wish to alter. For finding the id, go to the list of pages, hover over the title of the desired page, then look at the bottom of the browser window. You will see a long link with something like ....?post="XXX".... in it. The XXX number is the ID, and you need to use this number for each page you wish to alter. For five pages you will have 5 blocks of code for changing the background.
drake
 
Posts: 3783
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Different background images per page

Postby Colin » 24 Sep 2012, 22:58

for this particular page your tag will be

Code: Select all
#post-804 {background:transparent;}
Colin
 
Posts: 2793
Joined: 27 Oct 2009, 10:46

Re: Different background images per page

Postby watsontcbc » 25 Sep 2012, 10:37

That did it! So I'll do this for each page I need to put this background into, just using a different page-id #.
Thanks!
watsontcbc
 
Posts: 2
Joined: 24 Sep 2012, 14:19


Return to Support Requests

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 6 guests

cron