Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] 3.4.2 Specific header image per category


  #1  
Old Aug 3, 2009, 12:01 PM
Seb the frog's Avatar
Seb the frog
 
3 posts · Aug 2009
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
  #2  
Old Aug 3, 2009, 04:36 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 4, 2009, 03:42 AM
Seb the frog's Avatar
Seb the frog
 
3 posts · Aug 2009
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.
  #4  
Old Aug 8, 2009, 04:07 AM
Seb the frog's Avatar
Seb the frog
 
3 posts · Aug 2009
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 !

Bookmarks

Tags
category, header, image



Similar Threads
Thread Thread Starter Forum Replies Last Post
Specific image rotation on page? blueprairie Header configuration & styling 3 Aug 8, 2009 04:12 PM
Full Post Text on specific category pages spencer Atahualpa 3 Wordpress theme 1 Jul 7, 2009 03:47 PM
Desperately looking for help with HIDING header image on one specific page Cristiacus Header configuration & styling 0 Jun 2, 2009 04:50 PM
[SOLVED] Specific content in logo area for a category paulae Header configuration & styling 6 Mar 28, 2009 07:08 AM
nextGen gallery with image rotator as header image shatchp Header configuration & styling 1 Feb 13, 2009 08:40 PM


All times are GMT -6. The time now is 12:23 PM.


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