Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] 3.4.2 Specific header image per category (http://forum.bytesforall.com/showthread.php?t=2792)

Seb the frog Aug 3, 2009 12:01 PM

[SOLVED] 3.4.2 Specific header image per category
 
Hi there,

First of all, well done for the Atahualpa theme. Amazingly easy to use and implement ! As soon as I can I will donate - it deserves to be supported !

I have a question : I am trying to set a different header image for each category on my website, and I as using that piece of code
HTML Code:

/* static page or single post page with ID 1691 */
body#body-page-1691 div.header-image-container {
background: url(/wp-content/themes/atahualpa342/images/header/culture/bandeau-culture.jpg) !important;
}
body#body-cat-culture div.header-image-container {
background: url(/wp-content/themes/atahualpa342/images/header/culture/bandeau-culture.jpg) !important;
}

It used to work with the previous versions of the theme. Since I have upgraded to 3.4.2, it doesn't anymore...

Would someone know what to do to fix this ? Thanks

juggledad Aug 3, 2009 04:36 PM

which version did it work in?

In 3.4.2 I think you need 'body#page-id-1691' in place of 'body#body-page-1691'

and body#category-culture' instead of 'body#body-cat-culture'

Seb the frog Aug 4, 2009 03:42 AM

Thanks Juggledad.
Unfortunately, it doesn't seem to work this way either. I was using 3.4.1 the last time it worked, with the code included in the "Add html/css" page.

Seb the frog Aug 8, 2009 04:07 AM

I've found the solution : in 3.4.2 the code should be

HTML Code:

/* static page or single post page with ID 1691 */
body.page-id-1691 div.header-image-container {
background: url(/wp-content/themes/atahualpa342/images/header/culture/bandeau-culture.jpg) !important;
}
body.category-culture div.header-image-container {
background: url(/wp-content/themes/atahualpa342/images/header/culture/bandeau-culture.jpg) !important;
}

Fixed !


All times are GMT -6. The time now is 01:24 PM.

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