Different background image for a single post and page
Someone got the css code?
I found something relative: http://forum.bytesforall.com/showthr...nd+single+post |
see post#6 of that thread, that is the code, just put it in ATO->Add HTML/CSS Inserts->CSS Inserts
You will have to know the page ID you want it to work on. This can be found by viewing that page in your browser, viewing the source and searching for '<body'. You will see the page id there. |
You mean like this:
div.post-6 { background: url(/wp-content/themes/atahualpa/images/bg2.jpg) repeat top left } |
It seems the background image appears in the post. I mean the background image of the body. Is this possible?
|
sorry, use 'body.page-id-xx {...}'
|
Thanks alot! It works :)
The final code is for pages: body.page-id-2 { background: url(/wp-content/themes/atahualpa/images/logo.jpg) } Do you also know the code for post? |
well the simple code would be
HTML Code:
div.post-6 { HTML Code:
body.home div.post-6 { |
First, thank you for having this conversation. It is quite helpful on my side. Thanks!
The code works and below is what I have in the style.css under body {...} HTML Code:
body.page-id-1137 { WP Theme is called 'Ammon' |
Mattdans: step 1) switch to the atahualpa theme since that is what this forum supports
|
All times are GMT -6. The time now is 09:35 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.