Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Change background colors for each individual page (http://forum.bytesforall.com/showthread.php?t=1004)

wing23 Mar 29, 2009 11:12 AM

Change background colors for each individual page
 
Does anyone have an idea how to change the background color of individual pages content?

It would need to override the themes CSS somehow??

Thanks

Flynn Mar 30, 2009 01:35 PM

This is possible since 3.3

Add a HTML/CSS Inserts -> CSS Insert

HTML Code:

body#body-page-XX div.post {
background: #123456;
}

Or to change only the post body, without header, footer...
HTML Code:

body#body-page-XX div.post-bodycopy {
background: #123456;
}

Replace XX with the ID of the page in question

vito Aug 11, 2009 07:24 AM

Hi,
is this still possible?

I'm using 3.4.1 and I'd like to style every page individually. --> color or background image.

Nothing changed after inserting

body#body-page-84 div.post {
background: #000000;
}

into "CSS inserts".

But:
The following works - almost - fine. It displays the image inside the post area.


div#post-84 {
background: url(/testumgebung/wp-content/themes/atahualpa/images/test/da-vinci-vitruvian-man_1280.jpg) no-repeat;
}

Any ideas?

Thank you!! Best, Vito

juggledad Aug 11, 2009 08:40 AM

as of 3.4, body-page-XX is now page-id-XX

vito Aug 12, 2009 04:01 AM

Then this "CSS insertion" should have effect, shouldn't it?

body#page-id-84 {
background: url(/testumgebung/wp-content/themes/atahualpa/images/test/da-vinci-vitruvian-man_1280.jpg) no-repeat;
}

Intention: individual background image on a special page.

Flynn Aug 13, 2009 09:29 AM

Well, does it work or not?

vito Aug 13, 2009 12:29 PM

No, it doesn't work.

Flynn Aug 15, 2009 04:08 PM

Look into the browser rendered source code (Browser -> View Source) to see if you have <body class="page-id-84 ..."

View yourdomain.com/testumgebung/wp-content/themes/atahualpa/images/test/da-vinci-vitruvian-man_1280.jpg in the browser to see if it exists at that location


All times are GMT -6. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.