• I’ve been wondering all these days if it’s possible to have a flash header [mine is a kubrick template] on index.php only., but the default kubrick header for all other pages?

    Well then I had experimented ;
    what i did was get rid of the <?php get_header(); ?> in the index.php, copy the header template and instead of the kubrick header, I put in my own flash header and name is flash.php
    But now, what should I replace in the index.php page with <?php get_header(); ?>?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Put <?php get_header(); ?> back and then edit the header, not index.php. Use is_home() to do something like this:

    <?php

    if (is_home()) {
    echo "this is some flash!";
    } else {
    echo "Kubrick header";
    }

    ?>

    <h1 id="header"
    class="<?php if(is_home()) echo('header1');
    else echo('header2'); ?>"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>

    In the css:

    .header1 { details }
    .header2 { details }

    And now I think the problem is maybe how to get the css to use your flash header ? But the above is the if/or checking you want.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Special Flash header on index.php only’ is closed to new replies.