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 »

using dynamic header in header.php


 
Prev Previous Post   Next Post Next
  #1  
Old Feb 12, 2010, 11:41 AM
izzysanime
 
7 posts · Jan 2010
using dynamic header in header.php

I wanted to set Dynamic headers to have a specific image per page. I installed the plug in, but I'm not quite sure where to put the code in the theme. I went into header.php and placed into the header area, but it messes up the site. When I mean mess up, i mean getting php error codes like "an unexpected ...."

Here is the header area in the header.php file:

PHP Code:
// Header Image
if ( strpos($header_items,'%image') !== FALSE ) {

    
$bfa_header_images bfa_rotating_header_images();
    
$header_image '<div id="imagecontainer" class="header-image-container" style="background: url(' 
    
$bfa_header_images[array_rand($bfa_header_images)] . ') ' $bfa_ata['headerimage_alignment'] . ' no-repeat;">';
    
$header_image .= ($bfa_ata['header_image_clickable'] == "Yes" '<div class="clickable">
        <a class="divclick" title="' 
$bfa_ata['bloginfo_name'] . '" href ="' $bfa_ata['get_option_home'] . '/">&nbsp;</a></div>' '' );

        if ( 
$bfa_ata['header_opacity_left'] != AND $bfa_ata['header_opacity_left'] != '' ) { 
            
$header_image .= '<div class="opacityleft">&nbsp;</div>';
        }

        if ( 
$bfa_ata['header_opacity_right'] != AND $bfa_ata['header_opacity_right'] != '' ) { 
            
$header_image .= '<div class="opacityright">&nbsp;</div>';
        }
        
// END: If Header Opacity 

        
if ( $bfa_ata['overlay_blog_title'] == "Yes" OR $bfa_ata['overlay_blog_tagline'] == "Yes" ) {
            
$header_image .= '<div class="titleoverlay">' 
            ( 
$bfa_ata['overlay_blog_title'] == "Yes" '<h' $bfa_ata['h_blogtitle'] . ' class="blogtitle"><a href="' $bfa_ata['get_option_home'] . '/">' 
            
$bfa_ata['bloginfo_name'] . '</a></h' $bfa_ata['h_blogtitle'] . '>' '' ) . ( $bfa_ata['overlay_blog_tagline'] == "Yes" '<p class="tagline">' 
            
$bfa_ata['bloginfo_description'] . '</p>' '' ) . '</div>';
        }

    
$header_image .= '</div>';


There is also another part in header.php




PHP Code:
<!-- Header -->
    <td id="header" colspan="<?php echo $bfa_ata['cols']; ?>">

    <?php bfa_header_config($bfa_ata['configure_header']); ?>

    </td>
    <!-- / Header -->
Any suggestions would be great.

Thanks,
Josh
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Weird images dont change, when files changed in Dynamic Header?? Tamandua Header configuration & styling 1 Jan 23, 2010 10:28 AM
Accessing PHP variables after header sent out twola Sidebars & Widgets 1 Oct 2, 2009 11:24 AM
placing favicon code into header.php AlbaSurf Header configuration & styling 1 Aug 26, 2009 08:55 PM
Add custom php/js menu below header dmtompki Header configuration & styling 6 Jun 23, 2009 10:03 AM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 02:16 PM


All times are GMT -6. The time now is 04:59 AM.


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