Twenty ten add flash header and remove black bar

  • Unknown's avatar

    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?

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘Twenty ten add flash header and remove black bar’ is closed to new replies.