• I’m trying to input the code to place the dynamic headers so i can have different headers on certain pages. I wrote over this:

    <?php get_header(); ?>

    with this:

    <?php
    if(function_exists('show_media_header')){
    show_media_header();
    }
    ?>

    Which took off all formatting on my site and turned it into a list format. I since changed it back, but i’d still like to make it so i have different headers on certain pages.

    The problem i’m running into is that in this theme the header isn’t in header.php, but in each page code at the very top:

    <head>
    <?php get_header(); ?>
        <?php include(TEMPLATEPATH . "/initoptions.php"); ?>
    </head>

    Any suggestions? I’m at my wits end.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter morganofriel

    (@morganofriel)

    Woops, forgot to link to my website:
    http://www.morganofriel.com/

    Thread Starter morganofriel

    (@morganofriel)

    Okay, so i’m an idiot. I found where the actual code to load the header image is (functions.php) and it looks like this:

    <?php
    $headerimgoptions = get_option('candy_options');
    if(trim($headerimgoptions['candyheaderimage']) == "") $defaultimg = "header1"; else $defaultimg = $headerimgoptions['candyheaderimage'];
    define('HEADER_TEXTCOLOR', 'eee');
    define('HEADER_IMAGE', '%s/images/'.$defaultimg.'.png'); // %s is theme dir uri
    define('HEADER_IMAGE_WIDTH', 900);
    define('HEADER_IMAGE_HEIGHT', 180);
    
    function candy_admin_header_style() {
    ?>
    <style type="text/css">
      #headimg { background: url(<?php header_image() ?>) no-repeat; height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; width: <?php echo HEADER_IMAGE_WIDTH; ?>px; }
      #headimg h1 { margin:0; padding: 52px 0 0 22px; font-size: 34px; font-weight: normal; text-shadow: #000 1px 1px 1px; font-family: Georgia; font-style: italic; text-transform: lowercase; }
      #headimg h1 a { text-decoration:none; border:0; }
      #headimg #desc { margin:0; padding:7px 0 0 22px; font-style:italic; text-shadow: #000 1px 1px 1px; }
      #headimg * { color:#<?php header_textcolor();?>; }
    </style>
    <?php }
    function candy_header_style() {
    ?>
    <style type="text/css">
      #banner { background: url(<?php header_image() ?>) bottom no-repeat; height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; width: <?php echo HEADER_IMAGE_WIDTH; ?>px; }
      #banner h1 { color:#<?php header_textcolor();?>; }
      #banner h1 a { color:#<?php header_textcolor();?>; }
      #banner #description { color:#<?php header_textcolor();?>; }
    </style>
    <?php
    }
    if ( function_exists('add_custom_image_header') ) {
        add_custom_image_header('candy_header_style', 'candy_admin_header_style');
    }
    ?>

    So now I need to figure out where to put the code:

    <?php
    if(function_exists('show_media_header')){
    show_media_header();
    }
    ?>

    Any suggestions????

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Dynamic Headers; Theme: iCandy 1.4] Dynamic Headers issue’ is closed to new replies.