Forums

Twenty Ten add flash header and remove black lines (1 post)

  1. jharr92
    Member
    Posted 7 months ago #

    I have a website using the Twenty Ten theme and i wish to add a flash header with a fallback image, to do this I created a child theme and in header.php changed this:

    `<?php
    // Check if this is a post or page, if it has a thumbnail, and if it's a big one
    if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
    has_post_thumbnail( $post->ID ) &&
    ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    $image[1] >= HEADER_IMAGE_WIDTH ) :
    // Houston, we have a new header image!
    echo get_the_post_thumbnail( $post->ID );
    elseif ( get_header_image() ) : ?>
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    <?php endif; ?>`

    To this:

    `<object type="application/x-shockwave-flash" data="/wp-content/Banner1.swf" width="940" height="198">
    <param name="movie" value="/wp-content/Banner1.swf"></param>
    <img src="/wp-content/bannerstill.swf" width="940" height="198" alt=""/>`

    This worked, but the black bars above and below the header are now back, when using a still image i got rid of with this code:

    `#branding img {
    border-top: none;
    border-bottom: none;
    display: block;
    float: left;
    }`

    What do i need to change to make this work for my flash object too?

Reply

You must log in to post.

About this Topic