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 »

Set different headers for each page


  #1  
Old Apr 30, 2009, 02:44 AM
curious
 
21 posts · Apr 2009
Set different headers for each page

Hello,

can I set different headers (images-area) for each page without using a plugin?

Or otherwise can I use this plugin called "Dynamic Headers".

http://wordpress.org/extend/plugins/dynamic-headers/

My results using this plugin ended at this point:
After installing the plugIn, I paste this code "<?php show_media_header(); ?>" into the header.php.
The result is that the header-images (I added them for dynamic header in another directory (/wp-content/plugins/dynamic-headers/header-images/) are shown above the "logo" Area and the image area, and not in the "Image" area. The Image-Area leaves blank. This is not, what I want.
The order I use in my header area is " %logo" and than "%image".

greetings,

curious

Last edited by curious; Apr 30, 2009 at 12:34 PM.
  #2  
Old Apr 30, 2009, 02:07 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Remove %image from the theme settings
  #3  
Old Apr 30, 2009, 02:32 PM
curious
 
21 posts · Apr 2009
Hi flynn,

that doesn't work:-(


The choosen test-Headerimage is over the logo area again (after removing %image from the theme settings).
(as: "Bild1" in my attachment).

I want the solution like you see it on "Bild 2", with the choosen test-image inside yor headerimage- container (with the transparency left and right).

Last edited by curious; May 6, 2009 at 07:00 AM.
  #4  
Old Apr 30, 2009, 07:07 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You should be able to do this with a CSS Insert

Look into the source for the ID and various classes that the <BODY> tag gets on every page, and use that to address the header image container for each page separately.

HTML Code:
/* default */
div.header-image-container {
background: url(/wp-content/themes/atahualpa332/images/header/image1.gif) !important;
}
/* homepage */
body#body-frontpage div.header-image-container {
background: url(/wp-content/themes/atahualpa332/images/header/image2.gif) !important;
}
/* static page or single post page with ID 106 */
body#body-page-106 div.header-image-container {
background: url(/wp-content/themes/atahualpa332/images/header/image3.gif) !important;
}
/* all archive pages for December */
body.December div.header-image-container {
background: url(/wp-content/themes/atahualpa332/images/header/image4.gif) !important;
}
If this does not overwrite the inline style that the header-image-container gets, you'd have to edit bfa_header_config.php and replace

PHP Code:
$header_image '<div class="header-image-container" style="background: url(' $selected_header_image ') ' $bfa_ata_headerimage_alignment ' no-repeat;">'
with

PHP Code:
$header_image '<div class="header-image-container">'
  #5  
Old May 1, 2009, 01:12 AM
curious
 
21 posts · Apr 2009
Hi flinn,

I'm sorry to tell...

First I dissable the Plug_In "Dynamic Headers".

Than I copy your CSS Insert (with my Page-ID's) into the style.css.
Result:The header-image area is empty.

Than, in addition I overwrite the part in the bfa_header_config.php with your code.
Result:The header-image area is empty, too.

Than I checked it out with only the modified bfa_header_config.php. Same result...

greetings,
curious
  #6  
Old May 1, 2009, 03:46 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Post or PM a URL please

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cache and rotating images headers! Ponics Header configuration & styling 8 Dec 31, 2010 02:30 AM
Trying to insert 'dynamic headers' into horbar2 fruitbat Plugins & Atahualpa 17 Oct 5, 2009 06:46 AM
Warning: Cannot modify header information - headers already sent by Stepien Header configuration & styling 4 May 8, 2009 07:50 AM
Sticky Headers + Sidebar justjoolz Atahualpa 3 Wordpress theme 1 Apr 7, 2009 05:57 AM
Need help! how to set up Atahualpa theme's main page with links to pages? Marylander Excerpts, Read more, Pagination 0 Mar 18, 2009 09:17 AM


All times are GMT -6. The time now is 07:48 PM.


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